@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.
- package/install.js +13 -7
- 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
|
-
//
|
|
389
|
-
//
|
|
390
|
-
//
|
|
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("
|
|
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("
|
|
399
|
-
log("
|
|
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("--------------------------------------------------");
|