Parse PortRange of UDPPort from cli flag (#2039)

This commit is contained in:
cnderrauber
2023-09-06 14:17:49 +08:00
committed by GitHub
parent b38b51dad8
commit 75ffb25d77
4 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -71,9 +71,9 @@ var baseFlags = []cli.Flag{
Usage: "IP address of the current node, used to advertise to clients. Automatically determined by default",
EnvVars: []string{"NODE_IP"},
},
&cli.IntFlag{
&cli.StringFlag{
Name: "udp-port",
Usage: "Single UDP port to use for WebRTC traffic",
Usage: "UDP port(s) to use for WebRTC traffic",
EnvVars: []string{"UDP_PORT"},
},
&cli.StringFlag{