wgengine/tstun: also support DropSilently on PostFilterIn

Not a problem (yet). But should be consistent with other places that support both
types of drops.
pull/1194/head
Brad Fitzpatrick 4 years ago
parent eb47cba435
commit 97496a83af

@ -346,8 +346,8 @@ func (t *TUN) filterIn(buf []byte) filter.Response {
} }
if t.PostFilterIn != nil { if t.PostFilterIn != nil {
if t.PostFilterIn(p, t) == filter.Drop { if res := t.PostFilterIn(p, t); res.IsDrop() {
return filter.Drop return res
} }
} }

Loading…
Cancel
Save