From 97496a83afa04195ad37062a2585142e2f98af15 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 22 Jan 2021 13:22:32 -0800 Subject: [PATCH] wgengine/tstun: also support DropSilently on PostFilterIn Not a problem (yet). But should be consistent with other places that support both types of drops. --- wgengine/tstun/tun.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgengine/tstun/tun.go b/wgengine/tstun/tun.go index 8d73c065a..8a68f40f0 100644 --- a/wgengine/tstun/tun.go +++ b/wgengine/tstun/tun.go @@ -346,8 +346,8 @@ func (t *TUN) filterIn(buf []byte) filter.Response { } if t.PostFilterIn != nil { - if t.PostFilterIn(p, t) == filter.Drop { - return filter.Drop + if res := t.PostFilterIn(p, t); res.IsDrop() { + return res } }