@syengup/friday-channel-next 0.1.16 → 0.1.17

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/install.js +13 -7
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -385,18 +385,24 @@ if (ipType === "tailscale") {
385
385
  log("This URL appears to be publicly accessible (" + ip + ").");
386
386
  }
387
387
 
388
- // On a cloud server the advertised IP is the internal/NAT address, which a phone
389
- // over the internet can't reach. Best-effort: detect the public IP so the user
390
- // has the address to actually connect with (and a reminder to open the port).
388
+ // The advertised IP is the local/NAT address, which a phone over the internet
389
+ // can't reach. Best-effort: detect the network's public-facing IP. NOTE: an echo
390
+ // service only reports the egress address on a cloud VPS that's a routable 1:1
391
+ // NAT, but on a home/carrier-grade NAT (CGNAT) it's a shared egress IP that is
392
+ // NOT reachable inbound. So we present it as a hint, not a guarantee.
391
393
  if (ipType === "private" || ipType === "loopback") {
392
394
  const publicIp = await detectPublicIp();
393
395
  if (publicIp && publicIp !== ip) {
394
396
  log("");
395
- log(BOLD_YELLOW("Looks like a cloud server. For remote access use the PUBLIC address:"));
396
- log(BOLD_YELLOW("检测到云服务器,远程连接请改用公网地址:"));
397
+ log(BOLD_YELLOW("Network public-facing IP detected for remote access try:"));
398
+ log(BOLD_YELLOW("检测到网络出口公网 IP —— 远程连接可尝试:"));
397
399
  log("Public URL: " + BOLD_YELLOW(`http://${publicIp}:${gatewayPort}`));
398
- log("(Open inbound TCP port " + gatewayPort + " in your firewall / security group first.)");
399
- log("(需先在防火墙/安全组放行入站 TCP 端口 " + gatewayPort + "。)");
400
+ log("First open inbound TCP port " + gatewayPort + " in your firewall / cloud security group.");
401
+ log("请先在防火墙 / 云安全组放行入站 TCP 端口 " + gatewayPort + "。");
402
+ log("If this is a home/carrier network (CGNAT), this IP may NOT be reachable from outside —");
403
+ log("use a tunnel like Tailscale instead.");
404
+ log("若为家庭宽带 / 运营商大内网(CGNAT),此地址可能无法从外部入站访问,");
405
+ log("请改用 Tailscale 等内网穿透方案。");
400
406
  }
401
407
  }
402
408
  log("--------------------------------------------------");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syengup/friday-channel-next",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "OpenClaw Friday Next Apple channel plugin",
5
5
  "license": "MIT",
6
6
  "type": "module",