From 89dc50e2c5f5a1aa02d70318fdc484775e54a38a Mon Sep 17 00:00:00 2001 From: NHAS Date: Mon, 30 Oct 2023 07:25:16 +1300 Subject: [PATCH] Update error message --- internal/router/iptables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/router/iptables.go b/internal/router/iptables.go index 7afe51a1..ecf90d1d 100644 --- a/internal/router/iptables.go +++ b/internal/router/iptables.go @@ -70,7 +70,7 @@ func setupIptables() error { for _, port := range config.Values().ExposePorts { parts := strings.Split(port, "/") if len(parts) < 2 { - return errors.New(port + " is not in a valid port format. E.g 80/tcp") + return errors.New(port + " is not in a valid port format. E.g 80/tcp or 80-100/tcp") } err = ipt.Append("filter", "INPUT", "-m", parts[1], "-p", parts[1], "-i", devName, "--dport", strings.Replace(parts[0], "-", ":", 1), "-j", "ACCEPT")