diff --git a/README.md b/README.md index c4a6714..f53e5e3 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Check out the **[contributing wiki](https://github.com/pion/webrtc/wiki/Contribu * [Atsushi Watanabe](https://github.com/at-wat) * [Robert Eperjesi](https://github.com/epes) * [Sebastian Waisbrot](https://github.com/seppo0010) +* [Zizheng Tai](https://github.com/ZizhengTai) ### License MIT License - see [LICENSE](LICENSE) for full text diff --git a/agent.go b/agent.go index 27abc58..7ecb086 100644 --- a/agent.go +++ b/agent.go @@ -966,7 +966,7 @@ func (a *Agent) handleInbound(m *stun.Message, local Candidate, remote net.Addr) return } - a.selector.HandleSucessResponse(m, local, remoteCandidate, remote) + a.selector.HandleSuccessResponse(m, local, remoteCandidate, remote) } else if m.Type.Class == stun.ClassRequest { if err = assertInboundUsername(m, a.localUfrag+":"+a.remoteUfrag); err != nil { a.log.Warnf("discard message from (%s), %v", remote, err) diff --git a/selection.go b/selection.go index c313829..2137c17 100644 --- a/selection.go +++ b/selection.go @@ -12,7 +12,7 @@ type pairCandidateSelector interface { Start() ContactCandidates() PingCandidate(local, remote Candidate) - HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) + HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) HandleBindingRequest(m *stun.Message, local, remote Candidate) } @@ -140,7 +140,7 @@ func (s *controllingSelector) HandleBindingRequest(m *stun.Message, local, remot } } -func (s *controllingSelector) HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) { +func (s *controllingSelector) HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) { ok, pendingRequest := s.agent.handleInboundBindingSuccess(m.TransactionID) if !ok { s.log.Warnf("discard message from (%s), unknown TransactionID 0x%x", remote, m.TransactionID) @@ -225,7 +225,7 @@ func (s *controlledSelector) PingCandidate(local, remote Candidate) { s.agent.sendBindingRequest(msg, local, remote) } -func (s *controlledSelector) HandleSucessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) { +func (s *controlledSelector) HandleSuccessResponse(m *stun.Message, local, remote Candidate, remoteAddr net.Addr) { // TODO according to the standard we should specifically answer a failed nomination: // https://tools.ietf.org/html/rfc8445#section-7.3.1.5 // If the controlled agent does not accept the request from the