debugknobs_stubs.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build ios || js
  4. package magicsock
  5. import (
  6. "net/netip"
  7. "tailscale.com/types/opt"
  8. )
  9. // All knobs are disabled on iOS and Wasm.
  10. //
  11. // They're inlinable and the linker can deadcode that's guarded by them to make
  12. // smaller binaries.
  13. func debugBindSocket() bool { return false }
  14. func debugDisco() bool { return false }
  15. func debugOmitLocalAddresses() bool { return false }
  16. func logDerpVerbose() bool { return false }
  17. func debugReSTUNStopOnIdle() bool { return false }
  18. func debugAlwaysDERP() bool { return false }
  19. func debugUseDERPHTTP() bool { return false }
  20. func debugEnableSilentDisco() bool { return false }
  21. func debugSendCallMeUnknownPeer() bool { return false }
  22. func debugPMTUD() bool { return false }
  23. func debugUseDERPAddr() string { return "" }
  24. func debugEnablePMTUD() opt.Bool { return "" }
  25. func debugRingBufferMaxSizeBytes() int { return 0 }
  26. func inTest() bool { return false }
  27. func debugPeerMap() bool { return false }
  28. func pretendpoints() []netip.AddrPort { return []netip.AddrPort{} }
  29. func debugNeverDirectUDP() bool { return false }