Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Oct 29, 2023
1 parent 2b9a5f6 commit 89dc50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/router/iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 89dc50e

Please sign in to comment.