mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-09 20:29:23 +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
|
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) {
|
func parseIPPrefix(value string) (prefix netip.Prefix, err error) {
|
||||||
if !regexCidrSuffix.MatchString(value) {
|
if !regexCidrSuffix.MatchString(value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user