Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: T3 Connect environments switch to local connections automatically #5463

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromt3code/promote-t3-connect-localopened View on GitHub

Showing 24 changed files with 147 additions and 2 deletions (loading 21).

x
0 of 24 viewed, 24 left
2 additions and 2 deletionsapps/desktop/src/backend/DesktopServerExposure.tsModified
View file
@@ -9,7 +9,7 @@
type DesktopServerExposureMode,
type DesktopServerExposureState,
} from "@t3tools/contracts";
-import { readTailscaleStatus } from "@t3tools/tailscale";
+import { readTailscaleStatus, resolveTailscaleAdvertisedEndpoints } from "@t3tools/tailscale";
import * as Context from "effect/Context";
import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
@@ -23,7 +23,6 @@
import * as DesktopAppSettings from "../settings/DesktopAppSettings.ts";
import * as DesktopConfig from "../app/DesktopConfig.ts";
import * as DesktopNetworkInterfaces from "./DesktopNetworkInterfaces.ts";
-import { resolveTailscaleAdvertisedEndpoints } from "./tailscaleEndpointProvider.ts";
​
const TAILSCALE_STATUS_CACHE_TTL = Duration.seconds(60);
​
@@ -539,6 +538,7 @@
​
const tailscaleEndpoints = yield* resolveTailscaleAdvertisedEndpoints({
port: state.port,
+ source: "desktop-addon",
serveEnabled: state.tailscaleServeEnabled,
servePort: state.tailscaleServePort,
networkInterfaces: currentNetworkInterfaces,
145 additions and 0 deletionsapps/server/src/remoteAccess/ServerAdvertisedEndpoints.test.tsAdded
View file