Enable IPv6 for ICE

This commit is contained in:
Charlotte Som 2023-02-24 05:29:18 +00:00
parent 6bf2f0ee99
commit acb190dc18
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
HTTP_ADDRESS=127.0.0.1:3001
DATABASE_URL=./streams.db
UDP_MUX_PORT=3478
TCP_MUX_ADDR=0.0.0.0:3478
UDP_MUX_PORT=3479
TCP_MUX_ADDR=0.0.0.0:3479

View file

@ -86,8 +86,8 @@ func setupWebRTC() *webrtc.API {
func setupICE(settingEngine *webrtc.SettingEngine) {
settingEngine.SetNetworkTypes([]webrtc.NetworkType{
webrtc.NetworkTypeUDP4, // webrtc.NetworkTypeUDP6,
webrtc.NetworkTypeTCP4, // webrtc.NetworkTypeTCP6,
webrtc.NetworkTypeUDP4, webrtc.NetworkTypeUDP6,
webrtc.NetworkTypeTCP4, webrtc.NetworkTypeTCP6,
})
if udpPort := os.Getenv("UDP_MUX_PORT"); udpPort != "" {