Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
// 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) {}
|
||||
Reference in new issue
Block a user