2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-08-15 21:20:44 +01:00
|
|
|
|
2022-06-06 21:52:52 +01:00
|
|
|
//go:build ios || js
|
|
|
|
|
2021-08-15 21:20:44 +01:00
|
|
|
package magicsock
|
|
|
|
|
2024-07-08 15:21:21 +01:00
|
|
|
import (
|
|
|
|
"net/netip"
|
|
|
|
|
|
|
|
"tailscale.com/types/opt"
|
|
|
|
)
|
2022-01-26 01:11:43 +00:00
|
|
|
|
2022-06-06 21:52:52 +01:00
|
|
|
// All knobs are disabled on iOS and Wasm.
|
2022-09-14 20:49:39 +01:00
|
|
|
//
|
|
|
|
// They're inlinable and the linker can deadcode that's guarded by them to make
|
|
|
|
// smaller binaries.
|
2023-07-26 21:59:42 +01:00
|
|
|
func debugBindSocket() bool { return false }
|
2023-03-25 02:11:48 +00:00
|
|
|
func debugDisco() bool { return false }
|
|
|
|
func debugOmitLocalAddresses() bool { return false }
|
|
|
|
func logDerpVerbose() bool { return false }
|
|
|
|
func debugReSTUNStopOnIdle() bool { return false }
|
|
|
|
func debugAlwaysDERP() bool { return false }
|
2023-04-05 01:10:50 +01:00
|
|
|
func debugUseDERPHTTP() bool { return false }
|
2023-03-25 02:11:48 +00:00
|
|
|
func debugEnableSilentDisco() bool { return false }
|
|
|
|
func debugSendCallMeUnknownPeer() bool { return false }
|
2023-09-18 20:21:46 +01:00
|
|
|
func debugPMTUD() bool { return false }
|
2023-04-05 01:10:50 +01:00
|
|
|
func debugUseDERPAddr() string { return "" }
|
2023-09-18 20:21:46 +01:00
|
|
|
func debugEnablePMTUD() opt.Bool { return "" }
|
2023-07-26 21:59:42 +01:00
|
|
|
func debugRingBufferMaxSizeBytes() int { return 0 }
|
2023-03-25 02:11:48 +00:00
|
|
|
func inTest() bool { return false }
|
2023-09-11 18:13:00 +01:00
|
|
|
func debugPeerMap() bool { return false }
|
2024-07-10 02:47:46 +01:00
|
|
|
func pretendpoints() []netip.AddrPort { return []netip.AddrPort{} }
|