From 646e8af0429836942dc75131cd59f3d6454e481b Mon Sep 17 00:00:00 2001 From: Marcel Battista Date: Sun, 14 Feb 2021 23:34:01 +0000 Subject: [PATCH] Offer ICERestart --- server/internal/webrtc/webrtc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/webrtc/webrtc.go b/server/internal/webrtc/webrtc.go index 325f589c..e7ee37ea 100644 --- a/server/internal/webrtc/webrtc.go +++ b/server/internal/webrtc/webrtc.go @@ -152,7 +152,7 @@ func (manager *WebRTCManager) CreatePeer(id string, session types.Session) (stri return "", manager.config.ICELite, manager.config.ICEServers, err } - description, err := connection.CreateOffer(nil) + description, err := connection.CreateOffer(&webrtc.OfferOptions{ICERestart: true}) if err != nil { return "", manager.config.ICELite, manager.config.ICEServers, err }