@dsh-sup/dsh-core-linux-x64 0.1.3-BETA.1 → 0.1.3-BETA.2

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.
Files changed (2) hide show
  1. package/core.cjs +3 -2
  2. package/package.json +1 -1
package/core.cjs CHANGED
@@ -143,7 +143,7 @@ var require_version = __commonJS({
143
143
  var fs2 = require("node:fs");
144
144
  var path2 = require("node:path");
145
145
  function guardVersion() {
146
- if (true) return String("0.1.3-BETA.1");
146
+ if (true) return String("0.1.3-BETA.2");
147
147
  try {
148
148
  return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
149
149
  } catch {
@@ -7730,8 +7730,9 @@ var require_manager = __commonJS({
7730
7730
  }
7731
7731
  if (!await this.targetReachable(inst)) return;
7732
7732
  const hasPersistedBinding = !!(inst.wanPort && Number.isInteger(Number(inst.wanPort)) && inst.wanPort > 0);
7733
+ const relayPool = ports.rangeOf("relay");
7733
7734
  const slot = await ports.claimSlot("relay", owner, {
7734
- preferred: hasPersistedBinding ? inst.wanPort : inst.id === "main" ? 4e4 : void 0,
7735
+ preferred: hasPersistedBinding ? inst.wanPort : inst.id === "main" ? relayPool.base : void 0,
7735
7736
  bindingPreferred: hasPersistedBinding,
7736
7737
  onBindingLost: (e) => {
7737
7738
  if (this.events) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-sup/dsh-core-linux-x64",
3
- "version": "0.1.3-BETA.1",
3
+ "version": "0.1.3-BETA.2",
4
4
  "description": "DSH lifecycle guard core (Node launcher) for linux-x64 — requires Node >=18.",
5
5
  "license": "UNLICENSED",
6
6
  "os": [