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

This commit is contained in:
Frank Schroeder 2017-09-26 13:42:32 +02:00
parent 56e6439be9
commit 99246d38a7
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 2 deletions

View File

@ -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]]
}