mirror of
https://github.com/tailscale/tailscale.git
synced 2025-11-06 20:11:43 +00:00
wgengine/filter: only log packets to/from non-default routes.
Fixes tailscale/corp#1429. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -112,7 +112,7 @@ func setfilter(logf logger.Logf, tun *TUN) {
|
||||
}
|
||||
var sb netaddr.IPSetBuilder
|
||||
sb.AddPrefix(netaddr.MustParseIPPrefix("1.2.0.0/16"))
|
||||
tun.SetFilter(filter.New(matches, sb.IPSet(), nil, logf))
|
||||
tun.SetFilter(filter.New(matches, sb.IPSet(), sb.IPSet(), nil, logf))
|
||||
}
|
||||
|
||||
func newChannelTUN(logf logger.Logf, secure bool) (*tuntest.ChannelTUN, *TUN) {
|
||||
|
||||
Reference in New Issue
Block a user