debugknobs_stubs.go 968 B

12345678910111213141516171819202122232425
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build ios || js
  4. package magicsock
  5. import "tailscale.com/types/opt"
  6. // All knobs are disabled on iOS and Wasm.
  7. //
  8. // They're inlinable and the linker can deadcode that's guarded by them to make
  9. // smaller binaries.
  10. func debugDisco() bool { return false }
  11. func debugOmitLocalAddresses() bool { return false }
  12. func logDerpVerbose() bool { return false }
  13. func debugReSTUNStopOnIdle() bool { return false }
  14. func debugAlwaysDERP() bool { return false }
  15. func debugUseDERPHTTP() bool { return false }
  16. func debugEnableSilentDisco() bool { return false }
  17. func debugSendCallMeUnknownPeer() bool { return false }
  18. func debugUseDERPAddr() string { return "" }
  19. func debugUseDerpRouteEnv() string { return "" }
  20. func debugUseDerpRoute() opt.Bool { return "" }
  21. func inTest() bool { return false }