Update WebRTC and DTLS with security fixes (#678)

* Update WebRTC and DTLS with security fixes.

* remove aggressive nomination settings (now default)

* fixed TURN issue
This commit is contained in:
David Zhao
2022-05-10 18:27:16 -07:00
committed by GitHub
parent 7eb3362d0a
commit a1caeeb8de
5 changed files with 34 additions and 45 deletions
+2 -8
View File
@@ -9,13 +9,11 @@ import (
"github.com/pion/sdp/v3"
"github.com/pion/webrtc/v3"
"github.com/livekit/protocol/logger"
dd "github.com/livekit/livekit-server/pkg/sfu/dependencydescriptor"
"github.com/livekit/livekit-server/pkg/config"
logging "github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
dd "github.com/livekit/livekit-server/pkg/sfu/dependencydescriptor"
"github.com/livekit/protocol/logger"
)
const (
@@ -196,10 +194,6 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
}
}
if !rtcConf.RejectAggressiveNomination {
s.SetICEAcceptAggressiveNomination(true)
}
if len(rtcConf.Interfaces.Includes) != 0 || len(rtcConf.Interfaces.Excludes) != 0 {
includes := rtcConf.Interfaces.Includes
excludes := rtcConf.Interfaces.Excludes