summaryrefslogtreecommitdiffhomepage
path: root/util/linuxfw/iptables_disabled.go
blob: c986fe7c206eace58cc13ad5d69f0f5949e05843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

//go:build linux && ts_omit_iptables

package linuxfw

import (
	"errors"

	"tailscale.com/types/logger"
)

func detectIptables() (int, error) {
	return 0, nil
}

func newIPTablesRunner(logf logger.Logf) (*iptablesRunner, error) {
	return nil, errors.New("iptables disabled in build")
}