debugknobs_stubs.go 1.1 KB

12345678910111213141516171819202122232425262728
  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 debugBindSocket() bool { return false }
  11. func debugDisco() bool { return false }
  12. func debugOmitLocalAddresses() bool { return false }
  13. func logDerpVerbose() bool { return false }
  14. func debugReSTUNStopOnIdle() bool { return false }
  15. func debugAlwaysDERP() bool { return false }
  16. func debugUseDERPHTTP() bool { return false }
  17. func debugEnableSilentDisco() bool { return false }
  18. func debugSendCallMeUnknownPeer() bool { return false }
  19. func debugPMTUD() bool { return false }
  20. func debugUseDERPAddr() string { return "" }
  21. func debugUseDerpRouteEnv() string { return "" }
  22. func debugUseDerpRoute() opt.Bool { return "" }
  23. func debugRingBufferMaxSizeBytes() int { return 0 }
  24. func inTest() bool { return false }