debugknobs_stubs.go 866 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build ios || js
  5. // +build ios js
  6. package magicsock
  7. import "tailscale.com/types/opt"
  8. // All knobs are disabled on iOS and Wasm.
  9. //
  10. // They're inlinable and the linker can deadcode that's guarded by them to make
  11. // smaller binaries.
  12. func debugDisco() bool { return false }
  13. func debugOmitLocalAddresses() bool { return false }
  14. func logDerpVerbose() bool { return false }
  15. func debugReSTUNStopOnIdle() bool { return false }
  16. func debugAlwaysDERP() bool { return false }
  17. func debugEnableSilentDisco() bool { return false }
  18. func debugUseDerpRouteEnv() string { return "" }
  19. func debugUseDerpRoute() opt.Bool { return "" }
  20. func inTest() bool { return false }