We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cef957 commit 768356aCopy full SHA for 768356a
src/cli/cli.go
@@ -799,6 +799,9 @@ func relay(c *cli.Context) (err error) {
799
ports[i] = strconv.Itoa(portString + i)
800
}
801
802
+ if len(ports) < 2 {
803
+ return fmt.Errorf("relay requires at least two ports; specify --ports with two or more ports or set --transfers to 2+")
804
+ }
805
806
tcpPorts := strings.Join(ports[1:], ",")
807
for i, port := range ports {
0 commit comments