Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): separate LAN and Tailscale pairing endpoints #9882

Mergedmaria-rcksmerged 2 commits intomain fromrefs/pull/9882/headmerged by maria-rcks View on GitHub

Showing 3 changed files with 49 additions and 11 deletions.

x
0 of 3 viewed, 3 left
4 additions and 1 deletionapps/desktop/src/app/DesktopApp.tsModified
View file
@@ -194,7 +194,10 @@
yield* logBootstrapInfo("bootstrap enabled network access", {
endpointUrl: serverExposureState.endpointUrl,
});
- } else if (settings.serverExposureMode === "network-accessible") {
+ } else if (
+ settings.serverExposureMode === "network-accessible" &&
+ serverExposureState.mode === "local-only"
+ ) {
yield* logBootstrapWarning(
"bootstrap fell back to local-only because no advertised network host was available",
33 additions and 7 deletionsapps/desktop/src/backend/DesktopServerExposure.test.tsModified
View file
@@ -307,9 +307,9 @@
});
​
- it.effect("resolves advertised endpoints from the scoped runtime state", () =>
+ it.effect("keeps LAN and Tailscale endpoints distinct when Tailscale is enumerated first", () =>
withHarness(
- { ...lanNetworkInterfaces, ...tailnetNetworkInterfaces },
+ { ...tailnetNetworkInterfaces, ...lanNetworkInterfaces },
Effect.gen(function* () {
const serverExposure = yield* DesktopServerExposure.DesktopServerExposure;
yield* serverExposure.configureFromSettings({ port: 4173 });
@@ -324,6 +324,32 @@