mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
set answering dtls role as server. (#24)
This commit is contained in:
parent
a72648c409
commit
e80ae8019e
@ -170,6 +170,9 @@ func (manager *WebRTCManagerCtx) newPeerConnection(codecs []codec.RTPCodec, logg
|
|||||||
settings.SetICETimeouts(disconnectedTimeout, failedTimeout, keepAliveInterval)
|
settings.SetICETimeouts(disconnectedTimeout, failedTimeout, keepAliveInterval)
|
||||||
settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost)
|
settings.SetNAT1To1IPs(manager.config.NAT1To1IPs, webrtc.ICECandidateTypeHost)
|
||||||
settings.SetLite(manager.config.ICELite)
|
settings.SetLite(manager.config.ICELite)
|
||||||
|
// make sure server answer sdp setup as passive, to not force DTLS renegotiation
|
||||||
|
// otherwise iOS renegotiation fails with: Failed to set SSL role for the transport.
|
||||||
|
settings.SetAnsweringDTLSRole(webrtc.DTLSRoleServer)
|
||||||
|
|
||||||
var networkType []webrtc.NetworkType
|
var networkType []webrtc.NetworkType
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user