@tridha643/hestia 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/daemon.js CHANGED
@@ -8208,7 +8208,7 @@ import { execFile as execFile10 } from "child_process";
8208
8208
  import { promisify as promisify9 } from "util";
8209
8209
  import { join as join22, resolve as resolve2 } from "path";
8210
8210
  import { createHash as createHash7 } from "crypto";
8211
- import { resolveCname } from "dns/promises";
8211
+ import { resolve4, resolve6, resolveCname } from "dns/promises";
8212
8212
 
8213
8213
  // node_modules/.bun/yaml@2.9.0/node_modules/yaml/dist/index.js
8214
8214
  var composer = require_composer();
@@ -12638,6 +12638,14 @@ async function assertNamedTunnelDns(hostname, tunnelUuid) {
12638
12638
  if (records.includes(expected.toLowerCase()))
12639
12639
  return;
12640
12640
  } catch {}
12641
+ try {
12642
+ if ((await resolve4(hostname)).length > 0)
12643
+ return;
12644
+ } catch {}
12645
+ try {
12646
+ if ((await resolve6(hostname)).length > 0)
12647
+ return;
12648
+ } catch {}
12641
12649
  throw new HestiaError("dns-route-required", `${hostname} does not resolve through Hestia's adopted tunnel; configure wildcard CNAME *.${hostname.split(".").slice(1).join(".")} -> ${expected}`, { hostname, wildcardTarget: expected });
12642
12650
  }
12643
12651
 
@@ -13441,7 +13449,7 @@ class ComposeEngine {
13441
13449
  }
13442
13450
  const adopted = await adoptTunnel(tunnelName);
13443
13451
  if (adopted.connections > 0 && !isAdopted(adopted.uuid) && !opts?.force) {
13444
- throw new HestiaError("tunnel-busy", `tunnel "${tunnelName}" already has ${adopted.connections} live ` + `connector(s) \u2014 stop the other cloudflared first (hestia's ` + `connector serves your static hostnames too), or pass --force to ` + `accept nondeterministic routing`);
13452
+ throw new HestiaError("tunnel-busy", `tunnel "${tunnelName}" already has ${adopted.connections} live edge ` + `connection(s) from a foreign connector \u2014 stop the other cloudflared first (hestia's ` + `connector serves your static hostnames too), or pass --force to ` + `accept nondeterministic routing`);
13445
13453
  }
13446
13454
  const preflightRecord = readState(worktreeRoot);
13447
13455
  if (preflightRecord === null) {
@@ -13782,4 +13790,4 @@ async function main() {
13782
13790
  }
13783
13791
  main();
13784
13792
 
13785
- //# debugId=EB3743C68388FCE964756E2164756E21
13793
+ //# debugId=855573FAB285270F64756E2164756E21