2021-08-15 21:20:44 +01:00
|
|
|
// Copyright (c) 2021 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2022-06-06 21:52:52 +01:00
|
|
|
//go:build ios || js
|
|
|
|
|
2021-08-15 21:20:44 +01:00
|
|
|
package magicsock
|
|
|
|
|
2022-01-26 01:11:43 +00:00
|
|
|
import "tailscale.com/types/opt"
|
|
|
|
|
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.
|
|
|
|
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 }
|
2022-09-17 04:48:46 +01:00
|
|
|
func debugEnableSilentDisco() bool { return false }
|
2022-09-14 20:49:39 +01:00
|
|
|
func debugUseDerpRouteEnv() string { return "" }
|
|
|
|
func debugUseDerpRoute() opt.Bool { return "" }
|
2021-08-15 21:20:44 +01:00
|
|
|
|
|
|
|
func inTest() bool { return false }
|