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