diff options
| author | Andrew Dunham <andrew@tailscale.com> | 2022-09-01 18:31:11 -0400 |
|---|---|---|
| committer | Andrew Dunham <andrew@tailscale.com> | 2022-09-01 18:31:11 -0400 |
| commit | 39b45bb03104e5de6e75536dba9de9fcd77f7504 (patch) | |
| tree | dff8d32a60a4190c69e3a354595828af1809c6b5 /control | |
| parent | 265b008e49064adeef2e1d544cd13308fcf4f3cd (diff) | |
| download | tailscale-andrew/controlclient-dial.tar.xz tailscale-andrew/controlclient-dial.zip | |
Signed-off-by: Andrew Dunham <andrew@tailscale.com>
Diffstat (limited to 'control')
| -rw-r--r-- | control/controlclient/direct.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 80401f4dd..59cd4631b 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -133,6 +133,12 @@ type Options struct { // MapResponse.PingRequest queries from the control plane. // If nil, PingRequest queries are not answered. Pinger Pinger + + // GetTailscaleRoutes is a function that should return any Tailscale + // routes that are currently known; if any are returned, we test the IP + // address of the control server against these routes and use our + // fallback DNS server in those cases. + GetTailscaleRoutes func() []netip.Prefix } // Pinger is the LocalBackend.Ping method. |
