iptables_disabled.go 370 B

1234567891011121314151617181920
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build linux && ts_omit_iptables
  4. package linuxfw
  5. import (
  6. "errors"
  7. "tailscale.com/types/logger"
  8. )
  9. func detectIptables() (int, error) {
  10. return 0, nil
  11. }
  12. func newIPTablesRunner(logf logger.Logf) (*iptablesRunner, error) {
  13. return nil, errors.New("iptables disabled in build")
  14. }