mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
hotfix(firewall): handle iptables CIDR ranges with 3 digits for IPv6
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user