SetEphemeralUDPPortRange error catch.

This commit is contained in:
Miroslav Šedivý 2020-10-28 20:54:09 +01:00
parent 7628554356
commit 2f0b159ad6

View File

@ -95,7 +95,11 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri
settings.SetLite(true) settings.SetLite(true)
} }
settings.SetEphemeralUDPPortRange(manager.config.EphemeralMin, manager.config.EphemeralMax) err := settings.SetEphemeralUDPPortRange(manager.config.EphemeralMin, manager.config.EphemeralMax)
if err != nil {
return "", manager.config.ICELite, manager.config.ICEServers, err
}
settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost) settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost)
// Create MediaEngine based off sdp // Create MediaEngine based off sdp