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:
Sean DuBois
2018-09-29 01:19:12 -07:00
parent b1eccfa9d2
commit f3fa47ce89

View File

@@ -172,8 +172,6 @@ func (a *Agent) pingCandidate(local, remote Candidate) {
func (a *Agent) keepaliveCandidate(local, remote Candidate) {
msg, err := stun.Build(stun.ClassIndication, stun.MethodBinding, stun.GenerateTransactionId(),
&stun.Username{Username: a.remoteUfrag + ":" + a.LocalUfrag},
&stun.IceControlled{TieBreaker: a.tieBreaker},
&stun.Priority{Priority: uint32(local.GetBase().Priority(HostCandidatePreference, 1))},
&stun.MessageIntegrity{
Key: []byte(a.remotePwd),
},