mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
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:
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…
x
Reference in New Issue
Block a user