mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
74eb99aed1
* wgengine/magicsock: add envknob to send CallMeMaybe to non-existent peer For testing older client version responses to the PeerGone packet format change. Updates #4326 Signed-off-by: Val <valerie@tailscale.com> * derp: remove dead sclient struct member replaceLimiter Leftover from an previous solution to the duplicate client problem. Updates #2751 Signed-off-by: Val <valerie@tailscale.com> * derp, derp/derphttp, wgengine/magicsock: add new PeerGone message type Not Here Extend the PeerGone message type by adding a reason byte. Send a PeerGone "Not Here" message when an endpoint sends a disco message to a peer that this server has no record of. Fixes #4326 Signed-off-by: Val <valerie@tailscale.com> --------- Signed-off-by: Val <valerie@tailscale.com>
24 lines
859 B
Go
24 lines
859 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ios || js
|
|
|
|
package magicsock
|
|
|
|
import "tailscale.com/types/opt"
|
|
|
|
// All knobs are disabled on iOS and Wasm.
|
|
//
|
|
// 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 }
|
|
func debugEnableSilentDisco() bool { return false }
|
|
func debugSendCallMeUnknownPeer() bool { return false }
|
|
func debugUseDerpRouteEnv() string { return "" }
|
|
func debugUseDerpRoute() opt.Bool { return "" }
|
|
func inTest() bool { return false }
|