From 470f8162a4081be29740fdc8ed5e9a53c4183286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Aires=20Rast=C3=A9n?= Date: Thu, 17 Aug 2023 15:06:27 +0200 Subject: [PATCH] Remove interface address subnet length check Resolves #82 --- config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config.go b/config.go index 10e543a..1a6e7c2 100644 --- a/config.go +++ b/config.go @@ -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