From d98ef5699d2f3f7242ea42dc85818bfeba55abd9 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 17 Feb 2021 09:11:28 -0800 Subject: [PATCH] wgengine/filter: remove redundant code no generated code change. --- wgengine/filter/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgengine/filter/filter.go b/wgengine/filter/filter.go index b7eae68b1..a9cfcf47c 100644 --- a/wgengine/filter/filter.go +++ b/wgengine/filter/filter.go @@ -347,7 +347,7 @@ func (f *Filter) runIn4(q *packet.Parsed) (r Response, why string) { // can't be initiated without first sending a SYN. // It happens to also be much faster. // TODO(apenwarr): Skip the rest of decoding in this path? - if q.IPProto == packet.TCP && !q.IsTCPSyn() { + if !q.IsTCPSyn() { return Accept, "tcp non-syn" } if f.matches4.match(q) {