mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
parent
5f76f777d5
commit
d1a455e87d
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue