mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-04 15:35:38 +00:00
cmd/tailscale/cli: don't warn about iptables=off on Synology
We don't use iptables on Synology, so don't scare the user.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
(cherry picked from commit cdd231cb7d
)
This commit is contained in:
parent
cc080b72fd
commit
8b5912345e
@ -230,7 +230,9 @@ func prefsFromUpArgs(upArgs upArgsT, warnf logger.Logf, st *ipnstate.Status, goo
|
|||||||
warnf("netfilter=nodivert; add iptables calls to ts-* chains manually.")
|
warnf("netfilter=nodivert; add iptables calls to ts-* chains manually.")
|
||||||
case "off":
|
case "off":
|
||||||
prefs.NetfilterMode = preftype.NetfilterOff
|
prefs.NetfilterMode = preftype.NetfilterOff
|
||||||
|
if defaultNetfilterMode() != "off" {
|
||||||
warnf("netfilter=off; configure iptables yourself.")
|
warnf("netfilter=off; configure iptables yourself.")
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("invalid value --netfilter-mode=%q", upArgs.netfilterMode)
|
return nil, fmt.Errorf("invalid value --netfilter-mode=%q", upArgs.netfilterMode)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user