Config documentation for advertise_internal_ip and skip_external_ip_validation (#4552)

See https://github.com/livekit/mediatransportutil/pull/88
This commit is contained in:
cnderrauber
2026-06-01 14:37:08 +08:00
committed by GitHub
parent 7c319a67d4
commit 356ae211a3
5 changed files with 23 additions and 17 deletions
+1 -1
View File
@@ -427,7 +427,7 @@ func newPeerConnection(
}
if len(nat1to1Ips) > 0 {
params.Logger.Infow("client doesn't support prflx over relay, use external ip only as host candidate", "ips", nat1to1Ips)
if err := rtcconfig.SetNAT1To1AddressRewriteRules(&se, nat1to1Ips, webrtc.ICECandidateTypeHost); err != nil {
if err := rtcconfig.SetNAT1To1AddressRewriteRules(&se, nat1to1Ips, false); err != nil {
params.Logger.Warnw("failed to set ICE address rewrite rules", err, "ips", nat1to1Ips)
}
se.SetIPFilter(func(ip net.IP) bool {