mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
stun, stunner: clarify an error log message more
But two earlier changes mean this doesn't show up anymore anyway. But if it does, it'll be a nice message.
This commit is contained in:
parent
1b2be3f1c8
commit
d348b94505
@ -124,7 +124,7 @@ func ParseBindingRequest(b []byte) (TxID, error) {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
ErrNotSTUN = errors.New("response is not a STUN packet")
|
ErrNotSTUN = errors.New("response is not a STUN packet")
|
||||||
ErrNotSuccessResponse = errors.New("STUN response error")
|
ErrNotSuccessResponse = errors.New("STUN packet is not a response")
|
||||||
ErrMalformedAttrs = errors.New("STUN response has malformed attributes")
|
ErrMalformedAttrs = errors.New("STUN response has malformed attributes")
|
||||||
ErrNotBindingRequest = errors.New("STUN request not a binding request")
|
ErrNotBindingRequest = errors.New("STUN request not a binding request")
|
||||||
ErrWrongSoftware = errors.New("STUN request came from non-Tailscale software")
|
ErrWrongSoftware = errors.New("STUN request came from non-Tailscale software")
|
||||||
|
@ -110,7 +110,7 @@ func (s *Stunner) Receive(p []byte, fromAddr *net.UDPAddr) {
|
|||||||
// check probe coming in late. Ignore.
|
// check probe coming in late. Ignore.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.logf("stunner: received bad STUN response: %v", err)
|
s.logf("stunner: received unexpected STUN message response from %v: %v", fromAddr, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
r, ok := s.removeTX(tx)
|
r, ok := s.removeTX(tx)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user