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