Revert monkey patch since it is not clear whether this is an issue at all.

pull/3343/head^2
Frank Schroeder 7 years ago
parent 56e6439be9
commit 99246d38a7
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -58,8 +58,7 @@ func NewIPv4Addr(ipv4Str string) (IPv4Addr, error) {
// Strip off any bogus hex-encoded netmasks that will be mis-parsed by Go. In
// particular, clients with the Barracuda VPN client will see something like:
// `192.168.3.51/00ffffff` as their IP address.
// trailingHexNetmaskRe := trailingHexNetmaskRE.Copy()
trailingHexNetmaskRe := regexp.MustCompile(`/([0f]{8})$`)
trailingHexNetmaskRe := trailingHexNetmaskRE.Copy()
if match := trailingHexNetmaskRe.FindStringIndex(ipv4Str); match != nil {
ipv4Str = ipv4Str[:match[0]]
}

Loading…
Cancel
Save