mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
Remove IceControlled/Priority from ICE keepalive
IceControlled is incorrect if agent is controlling, instead of fixing remove instead. We don't need these two values in the keepalive. Resolves #187
This commit is contained in:
@@ -172,8 +172,6 @@ func (a *Agent) pingCandidate(local, remote Candidate) {
|
|||||||
func (a *Agent) keepaliveCandidate(local, remote Candidate) {
|
func (a *Agent) keepaliveCandidate(local, remote Candidate) {
|
||||||
msg, err := stun.Build(stun.ClassIndication, stun.MethodBinding, stun.GenerateTransactionId(),
|
msg, err := stun.Build(stun.ClassIndication, stun.MethodBinding, stun.GenerateTransactionId(),
|
||||||
&stun.Username{Username: a.remoteUfrag + ":" + a.LocalUfrag},
|
&stun.Username{Username: a.remoteUfrag + ":" + a.LocalUfrag},
|
||||||
&stun.IceControlled{TieBreaker: a.tieBreaker},
|
|
||||||
&stun.Priority{Priority: uint32(local.GetBase().Priority(HostCandidatePreference, 1))},
|
|
||||||
&stun.MessageIntegrity{
|
&stun.MessageIntegrity{
|
||||||
Key: []byte(a.remotePwd),
|
Key: []byte(a.remotePwd),
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user