ipn: plumb NetfilterMode all the way out to the CLI.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
c67c8913c3
commit
0fe262f093
@ -739,14 +739,7 @@ func routerConfig(cfg *wgcfg.Config, prefs *Prefs, dnsDomains []string) *router.
|
||||
DNSDomains: dnsDomains,
|
||||
SubnetRoutes: wgCIDRToNetaddr(prefs.AdvertiseRoutes),
|
||||
SNATSubnetRoutes: !prefs.NoSNAT,
|
||||
}
|
||||
switch {
|
||||
case prefs.NoNetfilter:
|
||||
rs.NetfilterMode = router.NetfilterOff
|
||||
case prefs.NoNetfilterCalls:
|
||||
rs.NetfilterMode = router.NetfilterNoDivert
|
||||
default:
|
||||
rs.NetfilterMode = router.NetfilterOn
|
||||
NetfilterMode: prefs.NetfilterMode,
|
||||
}
|
||||
|
||||
for _, peer := range cfg.Peers {
|
||||
|
Reference in New Issue
Block a user