Add listen_port option to Tailscale endpoint

This commit is contained in:
世界
2026-08-30 17:41:45 +08:00
parent b3a45e0839
commit 24d1f271bf
5 changed files with 27 additions and 0 deletions
+1
View File
@@ -202,6 +202,7 @@ func NewEndpoint(ctx context.Context, router adapter.Router, logger log.ContextL
Ephemeral: options.Ephemeral,
AuthKey: options.AuthKey,
ControlURL: options.ControlURL,
Port: options.ListenPort,
AdvertiseTags: options.AdvertiseTags,
Dialer: &endpointDialer{Dialer: outboundDialer, logger: logger},
LookupHook: func(ctx context.Context, host string) ([]netip.Addr, error) {