Parse PortRange of UDPPort from cli flag (#2039)

This commit is contained in:
cnderrauber authored and GitHub committed 2023-09-06 14:17:49 +08:00
1 parent b38b51dad8
commit 75ffb25d77
4 files changed
+6 -4

No files matched your search

+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{