2023-01-28 05:37:20 +08:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-08-16 04:20:44 +08:00
|
|
|
|
2022-06-07 04:52:52 +08:00
|
|
|
//go:build ios || js
|
|
|
|
|
2021-08-16 04:20:44 +08:00
|
|
|
package magicsock
|
|
|
|
|
2022-01-26 09:11:43 +08:00
|
|
|
import "tailscale.com/types/opt"
|
|
|
|
|
2022-06-07 04:52:52 +08:00
|
|
|
// All knobs are disabled on iOS and Wasm.
|
2022-09-15 03:49:39 +08:00
|
|
|
//
|
|
|
|
// They're inlinable and the linker can deadcode that's guarded by them to make
|
|
|
|
// smaller binaries.
|
2023-03-25 10:11:48 +08: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 08:10:50 +08:00
|
|
|
func debugUseDERPHTTP() bool { return false }
|
2023-03-25 10:11:48 +08:00
|
|
|
func debugEnableSilentDisco() bool { return false }
|
|
|
|
func debugSendCallMeUnknownPeer() bool { return false }
|
2023-04-05 08:10:50 +08:00
|
|
|
func debugUseDERPAddr() string { return "" }
|
2023-03-25 10:11:48 +08:00
|
|
|
func debugUseDerpRouteEnv() string { return "" }
|
|
|
|
func debugUseDerpRoute() opt.Bool { return "" }
|
|
|
|
func inTest() bool { return false }
|