Files
tsnet-proxy/vendor/tailscale.com/net/tstun/connreject_stub.go
T
2026-10-22 12:27:19 +01:00

19 lines
588 B
Go

// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause
//go:build ts_omit_connreject
package tstun
import "tailscale.com/net/packet"
// connRejectState is the omit-build counterpart of the type in
// connreject.go. It is an empty struct so the Wrapper's connReject
// field exists in both builds without referencing
// tailscale.com/net/connreject.
type connRejectState struct{}
// notifyConnRejectTSMPSent is a no-op when the connreject feature is
// omitted at build time.
func (*Wrapper) notifyConnRejectTSMPSent(packet.TailscaleRejectedHeader) {}