mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 20:45:13 +00:00
Parse PortRange of UDPPort from cli flag (#2039)
This commit is contained in:
@@ -801,7 +801,7 @@ func (conf *Config) updateFromCLI(c *cli.Context, baseFlags []cli.Flag) error {
|
||||
conf.RTC.NodeIP = c.String("node-ip")
|
||||
}
|
||||
if c.IsSet("udp-port") {
|
||||
conf.RTC.UDPPort = rtcconfig.PortRange{Start: (c.Int("udp-port"))}
|
||||
conf.RTC.UDPPort.UnmarshalString(c.String("udp-port"))
|
||||
}
|
||||
if c.IsSet("bind") {
|
||||
conf.BindAddresses = c.StringSlice("bind")
|
||||
|
||||
Reference in New Issue
Block a user