Skip to content

Commit

Permalink
Remove interface address subnet length check (#86)
Browse files Browse the repository at this point in the history
Resolves #82
  • Loading branch information
JohanAR authored Aug 17, 2023
1 parent 5f76f77 commit d1a455e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1a455e

Please sign in to comment.