hotfix(firewall): handle iptables CIDR ranges with 3 digits for IPv6

This commit is contained in:
Quentin McGaw
2024-08-19 14:02:53 +00:00
parent eaece0cb8e
commit 946f055fed

View File

@@ -153,7 +153,7 @@ func parseInstructionFlag(key, value string, instruction *iptablesInstruction) (
return nil
}
var regexCidrSuffix = regexp.MustCompile(`/[0-9][0-9]{0,1}$`)
var regexCidrSuffix = regexp.MustCompile(`/[0-9][0-9]{0,2}$`)
func parseIPPrefix(value string) (prefix netip.Prefix, err error) {
if !regexCidrSuffix.MatchString(value) {