stunner: quiet a harmless log warning

pull/182/head
Brad Fitzpatrick 2020-03-12 14:14:23 -07:00
parent bc73dcf204
commit a87ee4168a
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ func (s *Stunner) Receive(p []byte, fromAddr *net.UDPAddr) {
now := time.Now()
tx, addr, port, err := stun.ParseResponse(p)
if err != nil {
if _, err := stun.ParseBindingRequest(p); err == nil {
// This was probably our own netcheck hairpin
// check probe coming in late. Ignore.
return
}
s.logf("stunner: received bad STUN response: %v", err)
return
}