2021-08-15 20:20:44 +00: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 20:52:52 +00:00
|
|
|
//go:build ios || js
|
|
|
|
// +build ios js
|
|
|
|
|
2021-08-15 20:20:44 +00:00
|
|
|
package magicsock
|
|
|
|
|
2022-01-26 01:11:43 +00:00
|
|
|
import "tailscale.com/types/opt"
|
|
|
|
|
2022-06-06 20:52:52 +00:00
|
|
|
// All knobs are disabled on iOS and Wasm.
|
2021-08-15 20:20:44 +00:00
|
|
|
// Further, they're const, so the toolchain can produce smaller binaries.
|
|
|
|
const (
|
2022-01-26 01:11:43 +00:00
|
|
|
debugDisco = false
|
|
|
|
debugOmitLocalAddresses = false
|
|
|
|
debugUseDerpRouteEnv = ""
|
|
|
|
debugUseDerpRoute opt.Bool = ""
|
|
|
|
logDerpVerbose = false
|
|
|
|
debugReSTUNStopOnIdle = false
|
|
|
|
debugAlwaysDERP = false
|
2021-08-15 20:20:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func inTest() bool { return false }
|