fix: tighten custom bind probing (#740) (thanks @jeffersonwarrior)

This commit is contained in:
Peter Steinberger
2026-01-13 05:21:59 +00:00
parent c851bdd47a
commit 78627ce7c2
4 changed files with 8 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
### Changes
- Cron: accept ISO timestamps for one-shot schedules (UTC) and allow optional delete-after-run; wired into CLI + macOS editor.
- Gateway: add Tailscale binary discovery, custom bind mode, and probe auth retry for password changes. (#740 — thanks @jeffersonwarrior)
## 2026.1.12-4

View File

@@ -436,10 +436,7 @@ async function gatherDaemonStatus(opts: {
| "loopback"
| "custom";
const customBindHost = daemonCfg.gateway?.customBindHost;
const bindHost = await resolveGatewayBindHost(
bindMode,
customBindHost,
);
const bindHost = await resolveGatewayBindHost(bindMode, customBindHost);
const tailnetIPv4 = pickPrimaryTailnetIPv4();
const probeHost = pickProbeHostForBind(bindMode, tailnetIPv4, customBindHost);
const probeUrlOverride =

View File

@@ -263,7 +263,9 @@ async function promptGatewayConfig(
if (
parts.every((part) => {
const n = parseInt(part, 10);
return !Number.isNaN(n) && n >= 0 && n <= 255 && part === String(n);
return (
!Number.isNaN(n) && n >= 0 && n <= 255 && part === String(n)
);
})
)
return undefined;

View File

@@ -426,7 +426,9 @@ export async function runOnboardingWizard(
if (
parts.every((part) => {
const n = parseInt(part, 10);
return !Number.isNaN(n) && n >= 0 && n <= 255 && part === String(n);
return (
!Number.isNaN(n) && n >= 0 && n <= 255 && part === String(n)
);
})
)
return undefined;