add config to accept aggressive nomination (#642)

This commit is contained in:
cnderrauber
2022-04-21 18:32:18 +08:00
committed by GitHub
parent 2b6a304b27
commit 124d628c0a
5 changed files with 36 additions and 26 deletions
+4
View File
@@ -189,6 +189,10 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
}
}
if rtcConf.AcceptAggressiveNomination {
s.SetICEAcceptAggressiveNomination(true)
}
if len(rtcConf.Interfaces.Includes) != 0 || len(rtcConf.Interfaces.Excludes) != 0 {
includes := rtcConf.Interfaces.Includes
excludes := rtcConf.Interfaces.Excludes