diff --git a/firewall/config.go b/firewall/config.go index 3d5e3f0b..d4659972 100644 --- a/firewall/config.go +++ b/firewall/config.go @@ -76,7 +76,7 @@ func registerConfig() error { config.UnitAnnotation: "seconds", config.CategoryAnnotation: "General", }, - ValidationRegex: `^[1-9][0-9]{1,5}?$`, + ValidationRegex: `^[1-9][0-9]{1,5}$`, }) if err != nil { return err diff --git a/resolver/config.go b/resolver/config.go index 85a22063..061b6bc3 100644 --- a/resolver/config.go +++ b/resolver/config.go @@ -166,7 +166,7 @@ The format is: "protocol://ip:port?parameter=value¶meter=value" config.UnitAnnotation: "seconds", config.CategoryAnnotation: "Servers", }, - ValidationRegex: `^[1-9][0-9]{1,5}?$`, + ValidationRegex: `^[1-9][0-9]{1,5}$`, }) if err != nil { return err