auvezy-terminal-remote 0.4.1 → 0.4.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/dist/cli.js +6 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1469,7 +1469,12 @@ function detectDisplayIp(hostHint) {
1469
1469
  }
1470
1470
  }
1471
1471
  }
1472
- return tailscale[0] ?? lanReal[0] ?? lanVirtual[0] ?? linkLocals[0] ?? "127.0.0.1";
1472
+ const picked = tailscale[0] ?? lanReal[0] ?? lanVirtual[0] ?? linkLocals[0] ?? "127.0.0.1";
1473
+ if (process.env["ATR_DEBUG_NETWORK"] !== "0") {
1474
+ process.stderr.write(`[detectDisplayIp] tailscale=[${tailscale.join(",")}] lanReal=[${lanReal.join(",")}] lanVirtual=[${lanVirtual.join(",")}] linkLocal=[${linkLocals.join(",")}] \u2192 picked=${picked}
1475
+ `);
1476
+ }
1477
+ return picked;
1473
1478
  }
1474
1479
  function isShareableIpv6(ip, info) {
1475
1480
  if (!ip.includes(":"))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auvezy-terminal-remote",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "Auvezy Terminal Remote — 局域网内通过手机/平板浏览器远程控制 PC 终端:atr <program>,多终端多实例自动出现在浏览器 tab 切换",
6
6
  "license": "UNLICENSED",