Skip to content

Commit

Permalink
Disable mDNS for ICE
Browse files Browse the repository at this point in the history
  • Loading branch information
sergystepanov committed Aug 1, 2023
1 parent 6b8dd33 commit 1e57c3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/network/webrtc/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package webrtc

import (
"fmt"
"github.com/pion/ice/v2"
"net"

"github.com/giongto35/cloud-game/v3/pkg/config"
Expand Down Expand Up @@ -72,6 +73,8 @@ func NewApiFactory(conf config.Webrtc, log *logger.Logger, mod ModApiFun) (api *
log.Info().Msgf("The NAT mapping is active for %v", conf.IceIpMap)
}

s.SetICEMulticastDNSMode(ice.MulticastDNSModeDisabled)

if mod != nil {
mod(m, i, &s)
}
Expand Down

0 comments on commit 1e57c3b

Please sign in to comment.