mirror of
https://github.com/pion/ice.git
synced 2025-09-27 03:45:54 +08:00
Add option to include loopback candidate
Add option to include loopback candidate
This commit is contained in:
@@ -78,7 +78,7 @@ func NewUDPMuxDefault(params UDPMuxParams) *UDPMuxDefault {
|
||||
}
|
||||
if len(networks) > 0 {
|
||||
muxNet := vnet.NewNet(nil)
|
||||
ips, err := localInterfaces(muxNet, nil, nil, networks)
|
||||
ips, err := localInterfaces(muxNet, nil, nil, networks, true)
|
||||
if err == nil {
|
||||
for _, ip := range ips {
|
||||
localAddrsForUnspecified = append(localAddrsForUnspecified, &net.UDPAddr{IP: ip, Port: addr.Port})
|
||||
|
Reference in New Issue
Block a user