diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a54630..6681ffc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Valid recv_error packets were incorrectly marked as "spoofing" and ignored. (#482) + ## [1.4.0] - 2021-05-11 ### Added diff --git a/outside.go b/outside.go index 88cf6af..aad085d 100644 --- a/outside.go +++ b/outside.go @@ -340,7 +340,7 @@ func (f *Interface) handleRecvError(addr *udpAddr, h *Header) { if !hostinfo.RecvErrorExceeded() { return } - if hostinfo.remote != nil && hostinfo.remote.Equals(addr) { + if hostinfo.remote != nil && !hostinfo.remote.Equals(addr) { f.l.Infoln("Someone spoofing recv_errors? ", addr, hostinfo.remote) return }