Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c149de1d9a |
No files matched your search
@@ -53,7 +53,8 @@ const (
|
|||||||
FormatIVPNJSON
|
FormatIVPNJSON
|
||||||
|
|
||||||
// FormatProtonVPN has one address or network per line, with comment lines
|
// FormatProtonVPN has one address or network per line, with comment lines
|
||||||
// that start with #. Unlike FormatLines, a file with no networks fails.
|
// that start with #. Unlike FormatLines, a file with no addresses or
|
||||||
|
// networks fails.
|
||||||
FormatProtonVPN
|
FormatProtonVPN
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -331,8 +331,9 @@ func parseIVPN(r io.Reader) (*netipx.IPSet, error) {
|
|||||||
return addressSet(texts)
|
return addressSet(texts)
|
||||||
}
|
}
|
||||||
|
|
||||||
// parseProtonVPN returns the networks in a ProtonVPN-IPs list. A file with no
|
// parseProtonVPN returns the addresses or networks in a ProtonVPN-IPs list. A
|
||||||
// networks fails, because the service always has servers.
|
// file with no addresses or networks fails, because the service always has
|
||||||
|
// servers.
|
||||||
func parseProtonVPN(r io.Reader) (*netipx.IPSet, error) {
|
func parseProtonVPN(r io.Reader) (*netipx.IPSet, error) {
|
||||||
addresses, err := parseLines(r, addAddressOrNetwork)
|
addresses, err := parseLines(r, addAddressOrNetwork)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user