wgengine/tstun: also support DropSilently on PostFilterIn

Not a problem (yet). But should be consistent with other places that support both
types of drops.
This commit is contained in:
Brad Fitzpatrick 2021-01-22 13:22:32 -08:00
parent eb47cba435
commit 97496a83af

View File

@ -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
}
}