Remove interface address subnet length check (#86)

Resolves #82
This commit is contained in:
Johan 2023-08-18 00:10:38 +02:00 committed by GitHub
parent 5f76f777d5
commit d1a455e87d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,10 +151,6 @@ func parseCIDRNetIP(section *ini.Section, keyName string) ([]netip.Addr, error)
}
addr := prefix.Addr()
if prefix.Bits() != addr.BitLen() {
return nil, errors.New("interface address subnet should be /32 for IPv4 and /128 for IPv6")
}
ips = append(ips, addr)
}
return ips, nil