feature/ace: make ACE modular

Updates #12614

Change-Id: Iaee75d8831c4ba5c9705d7877bb78044424c6da1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2025-10-03 17:32:17 -07:00
committed by Brad Fitzpatrick
parent 141eb64d3f
commit 223ced84b5
14 changed files with 77 additions and 14 deletions

View File

@@ -28,6 +28,8 @@ type Dialer struct {
ACEHostIP netip.Addr // optional; if non-zero, use this IP instead of DNS
ACEPort int // zero means 443
// NetDialer optionally specifies the underlying dialer to use to reach the
// ACEHost. If nil, net.Dialer.DialContext is used.
NetDialer func(ctx context.Context, network, address string) (net.Conn, error)
}