Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): Tailscale HTTPS stays on, and can be turned off, when this machine can't reach its own URL #15027

Closedtiliakoos(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/15027/headopened View on GitHub

Showing 3 changed files with 75 additions and 13 deletions.

x
0 of 3 viewed, 3 left
36 additions and 0 deletionsapps/web/src/components/settings/ConnectionsSettings.logic.test.tsModified
View file
@@ -6,6 +6,7 @@
isQrShareableEndpoint,
isWslSettingsRowVisible,
missingTailscaleEndpointDescription,
+ resolveTailscaleHttpsRowState,
selectQrEndpointOption,
togglePairingScopeSelection,
} from "./ConnectionsSettings.logic";
@@ -250,3 +251,38 @@
});
});
+​
+describe("resolveTailscaleHttpsRowState", () => {
+ const endpoint = makeEndpoint({
+ id: "tailscale-magicdns:https://machine.tailnet.ts.net",
+ label: "Tailscale HTTPS",
+ httpBaseUrl: "https://machine.tailnet.ts.net",
+ wsBaseUrl: "wss://machine.tailnet.ts.net",
+ reachability: "private-network",
+ });
+​
+ it("keeps failed-probe HTTPS enabled and disableable", () => {
+ const unavailable = { ...endpoint, status: "unavailable" as const };
+ expect(
+ resolveTailscaleHttpsRowState({ endpoint: unavailable, serveEnabled: true }),
+ ).toMatchObject({
+ showSwitch: true,
+ checked: true,