Updates #12614 Change-Id: Iaee75d8831c4ba5c9705d7877bb78044424c6da1 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>main
parent
141eb64d3f
commit
223ced84b5
@ -0,0 +1,25 @@ |
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package ace registers support for Alternate Connectivity Endpoints (ACE).
|
||||
package ace |
||||
|
||||
import ( |
||||
"net/netip" |
||||
|
||||
"tailscale.com/control/controlhttp" |
||||
"tailscale.com/net/ace" |
||||
"tailscale.com/net/netx" |
||||
) |
||||
|
||||
func init() { |
||||
controlhttp.HookMakeACEDialer.Set(mkDialer) |
||||
} |
||||
|
||||
func mkDialer(dialer netx.DialFunc, aceHost string, optIP netip.Addr) netx.DialFunc { |
||||
return (&ace.Dialer{ |
||||
ACEHost: aceHost, |
||||
ACEHostIP: optIP, // may be zero
|
||||
NetDialer: dialer, |
||||
}).Dial |
||||
} |
||||
@ -0,0 +1,13 @@ |
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_ace
|
||||
|
||||
package buildfeatures |
||||
|
||||
// HasACE is whether the binary was built with support for modular feature "Alternate Connectivity Endpoints".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_ace" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasACE = false |
||||
@ -0,0 +1,13 @@ |
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_ace
|
||||
|
||||
package buildfeatures |
||||
|
||||
// HasACE is whether the binary was built with support for modular feature "Alternate Connectivity Endpoints".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_ace" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasACE = true |
||||
@ -0,0 +1,8 @@ |
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
//go:build !ts_omit_ace
|
||||
|
||||
package condregister |
||||
|
||||
import _ "tailscale.com/feature/ace" |
||||
Loading…
Reference in new issue