mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
wgengine/router: always use nftables mode on gokrazy
Updates gokrazy/gokrazy#209 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
17ce75347c
commit
25a8daf405
@ -76,6 +76,11 @@ func (l *linuxFWDetector) nftDetect() (int, error) {
|
|||||||
// chooseFireWallMode returns the firewall mode to use based on the
|
// chooseFireWallMode returns the firewall mode to use based on the
|
||||||
// environment and the system's capabilities.
|
// environment and the system's capabilities.
|
||||||
func chooseFireWallMode(logf logger.Logf, det tableDetector) linuxfw.FirewallMode {
|
func chooseFireWallMode(logf logger.Logf, det tableDetector) linuxfw.FirewallMode {
|
||||||
|
if distro.Get() == distro.Gokrazy {
|
||||||
|
// Reduce startup logging on gokrazy. There's no way to do iptables on
|
||||||
|
// gokrazy anyway.
|
||||||
|
return linuxfw.FirewallModeNfTables
|
||||||
|
}
|
||||||
iptAva, nftAva := true, true
|
iptAva, nftAva := true, true
|
||||||
iptRuleCount, err := det.iptDetect()
|
iptRuleCount, err := det.iptDetect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user