Skip to content

Commit

Permalink
feature: enable ice mDNS
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Jun 17, 2021
1 parent 923cabd commit e41fded
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ func (conn *Connection) Open(timeout time.Duration) error {

// create an ice.Agent that will be responsible for negotiating and establishing actual peer-to-peer connection
a, err := ice.NewAgent(&ice.AgentConfig{
NetworkTypes: []ice.NetworkType{ice.NetworkTypeUDP4},
Urls: conn.Config.StunTurnURLS,
MulticastDNSMode: ice.MulticastDNSModeQueryAndGather,
NetworkTypes: []ice.NetworkType{ice.NetworkTypeUDP4},
Urls: conn.Config.StunTurnURLS,
InterfaceFilter: func(s string) bool {
if conn.Config.iFaceBlackList == nil {
return true
Expand Down

0 comments on commit e41fded

Please # to comment.