mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 07:58:50 +02:00
6 UDP ports are enough (but does not work)
This commit is contained in:
@ -46,7 +46,7 @@ func newPeerHandler(remoteSdp webrtc.SessionDescription) webrtc.SessionDescripti
|
||||
|
||||
// Create a new PeerConnection
|
||||
settingsEngine := webrtc.SettingEngine{}
|
||||
if err := settingsEngine.SetEphemeralUDPPortRange(10000, 11000); err != nil {
|
||||
if err := settingsEngine.SetEphemeralUDPPortRange(10000, 10005); err != nil {
|
||||
log.Println("Failed to set min/max UDP ports", err)
|
||||
return webrtc.SessionDescription{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user