Use verified company gateway for authorized Tailscale nodes
This commit is contained in:
@@ -71,7 +71,7 @@ internal static class NodeTransportConnector
|
||||
// No background race or periodic optimization may replace a healthy session.
|
||||
internal static async Task<bool> ConnectAsync(ConfigResponse response, TailnetPreference preference,
|
||||
Func<string, CancellationToken, Task> start, Func<Task> stop, Func<CancellationToken, Task<bool>> proxyHealth,
|
||||
Action<string> requireRoute, Action<string> status, Func<long> ticks,
|
||||
Action<string>? requireRoute, Action<string> status, Func<long> ticks,
|
||||
CancellationToken token, bool allowKnownEndpoints = false,
|
||||
Func<string, int, CancellationToken, Task<bool>>? endpointProbe = null,
|
||||
Action<TransportDiagnostic>? diagnostic = null)
|
||||
@@ -83,7 +83,7 @@ internal static class NodeTransportConnector
|
||||
void Report(string action, string code) => diagnostic?.Invoke(new(action, code, response.Node.Slug));
|
||||
if (tailnet is null) Report("tailnet_skipped", reason);
|
||||
else Report("tailnet_candidate", reason);
|
||||
if (tailnet is not null)
|
||||
if (tailnet is not null && requireRoute is not null)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user