mirror of
https://github.com/livekit/livekit.git
synced 2026-03-29 15:49:55 +00:00
Fix RTC IP when binding to 0.0.0.0 (#1862)
This commit is contained in:
@@ -217,7 +217,7 @@ func getConfig(c *cli.Context) (*config.Config, error) {
|
||||
// our IP discovery ignores loopback addresses
|
||||
for _, addr := range conf.BindAddresses {
|
||||
ip := net.ParseIP(addr)
|
||||
if ip != nil && !ip.IsLoopback() {
|
||||
if ip != nil && !ip.IsLoopback() && !ip.IsUnspecified() {
|
||||
shouldMatchRTCIP = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user