fix: add explicit tailnet gateway bind
This commit is contained in:
1 parent
45c1ccdfcf
commit
b5fd66c92d
30 files changed
+143
-71
No files matched your search
@@ -46,7 +46,7 @@ export function pickProbeHostForBind(
|
||||
if (bindMode === "custom" && customBindHost?.trim()) {
|
||||
return customBindHost.trim();
|
||||
}
|
||||
if (bindMode === "auto") return tailnetIPv4 ?? "127.0.0.1";
|
||||
if (bindMode === "tailnet") return tailnetIPv4 ?? "127.0.0.1";
|
||||
return "127.0.0.1";
|
||||
}
|
||||
|
||||
|
||||
@@ -172,7 +172,8 @@ export async function gatherDaemonStatus(
|
||||
| "auto"
|
||||
| "lan"
|
||||
| "loopback"
|
||||
| "custom";
|
||||
| "custom"
|
||||
| "tailnet";
|
||||
const customBindHost = daemonCfg.gateway?.customBindHost;
|
||||
const bindHost = await resolveGatewayBindHost(bindMode, customBindHost);
|
||||
const tailnetIPv4 = pickPrimaryTailnetIPv4();
|
||||
|
||||
Reference in new issue
Block a user