mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 15:35:41 +00:00
udp instead of udp4
This commit is contained in:
@@ -66,7 +66,7 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
|
||||
|
||||
var udpMux *ice.UDPMuxDefault
|
||||
if conf.UDPPort != 0 {
|
||||
conn, err := net.ListenUDP("udp4", &net.UDPAddr{
|
||||
conn, err := net.ListenUDP("udp", &net.UDPAddr{
|
||||
Port: int(conf.UDPPort),
|
||||
})
|
||||
if err != nil {
|
||||
@@ -88,7 +88,7 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
|
||||
networkTypes = append(networkTypes,
|
||||
webrtc.NetworkTypeTCP4,
|
||||
)
|
||||
tcpListener, err := net.ListenTCP("tcp4", &net.TCPAddr{
|
||||
tcpListener, err := net.ListenTCP("tcp", &net.TCPAddr{
|
||||
Port: int(conf.TCPPort),
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user