From 60139503662d26ea7f7755b018f80c356aae4b94 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:08:17 +0800 Subject: [PATCH 1/7] Update configuration values in index.js --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 57b78a3..a184c15 100644 --- a/index.js +++ b/index.js @@ -2,13 +2,13 @@ const fs = require("fs"); const path = require("path"); const { spawn } = require("child_process"); -const DOMAIN = "YOUR_DOMAIN"; -const PORT = 10008; -const UUID = "YOUR_UUID"; +const DOMAIN = "node-xah-hopelee8964348-qehpf89w.leapcell.dev"; +const PORT = 33777; +const UUID = "1f68008d-4978-44e9-b788-b572f5f78087"; const SHORT_ID = "YOUR_SHORT_ID"; const PUBLIC_KEY = "YOUR_PUBLIC_KEY"; -let ARGO_DOMAIN = "YOUR_ARGO_DOMAIN"; -const ARGO_TOKEN = ""; +let ARGO_DOMAIN = "leapcell.c.6.8.b.0.d.0.0.1.0.a.2.ip6.arpa"; +const ARGO_TOKEN = "eyJhIjoiMjY5MTA5YzVhNDQ5NDY3NzE2NmRmZThmMDY0YjZhYzciLCJ0IjoiOGU5NmYzNDQtYTI1My00ZTNmLTkzYjgtZTNhOTY2YmZjZmFkIiwicyI6Ik5HRmlPR1ZrTWpRdE56VTRZaTAwTmpoaUxUazNNVEl0WW1ObU1qUmpaVGxrWVRneiJ9"; const REMARKS_PREFIX = "YOUR_REMARKS_PREFIX"; // Binary and config definitions From daf7ebd6d759bfaea8f2b61399242473629289ff Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:27:44 +0800 Subject: [PATCH 2/7] Update REMARKS_PREFIX to 'leapcell' --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c8d9023..0d08d9f 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const SHORT_ID = "YOUR_SHORT_ID"; const PUBLIC_KEY = "YOUR_PUBLIC_KEY"; let ARGO_DOMAIN = "leapcell.c.6.8.b.0.d.0.0.1.0.a.2.ip6.arpa"; const ARGO_TOKEN = "eyJhIjoiMjY5MTA5YzVhNDQ5NDY3NzE2NmRmZThmMDY0YjZhYzciLCJ0IjoiOGU5NmYzNDQtYTI1My00ZTNmLTkzYjgtZTNhOTY2YmZjZmFkIiwicyI6Ik5HRmlPR1ZrTWpRdE56VTRZaTAwTmpoaUxUazNNVEl0WW1ObU1qUmpaVGxrWVRneiJ9"; -const REMARKS_PREFIX = "YOUR_REMARKS_PREFIX"; +const REMARKS_PREFIX = "leapcell"; // Binary and config definitions const apps = [ @@ -46,7 +46,7 @@ function printSubInfo() { `============================================================ 🚀 WebSocket+Argo & Reality & HY2 Node Info ------------------------------------------------------------ -${subInfo.join('\n')} +${subInfo。join('\n')} ============================================================`); } From 2f1aa70d31880919a5700d9b6653bf53da55f3f4 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:53:58 +0800 Subject: [PATCH 3/7] Fix typo in WebSocket info log output --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0d08d9f..48b63ec 100644 --- a/index.js +++ b/index.js @@ -46,7 +46,7 @@ function printSubInfo() { `============================================================ 🚀 WebSocket+Argo & Reality & HY2 Node Info ------------------------------------------------------------ -${subInfo。join('\n')} +${subInfo.join('\n')} ============================================================`); } From 25eae4fc1aec550ece1a1188bc78a757570a14d5 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:13:00 +0800 Subject: [PATCH 4/7] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 731ae7d..aeb91ef 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Xray & Hysteria2 Startup Script", "main": "index.js", "scripts": { - "start": "node index.js" + "start": "chmod +x install.sh && ./install.sh && node index.js" }, "author": "vevc", "license": "MIT" -} \ No newline at end of file +} From d929fd3fe3afe55ff49b5f4d713c561f98def2c2 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:14:29 +0800 Subject: [PATCH 5/7] Use environment variable for PORT configuration --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 48b63ec..a818012 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const path = require("path"); const { spawn } = require("child_process"); const DOMAIN = "node-xah-hopelee8964348-qehpf89w.leapcell.dev"; -const PORT = 33777; +const PORT = process.env.PORT || 33777; const UUID = "1f68008d-4978-44e9-b788-b572f5f78087"; const SHORT_ID = "YOUR_SHORT_ID"; const PUBLIC_KEY = "YOUR_PUBLIC_KEY"; @@ -46,7 +46,7 @@ function printSubInfo() { `============================================================ 🚀 WebSocket+Argo & Reality & HY2 Node Info ------------------------------------------------------------ -${subInfo.join('\n')} +${subInfo。join('\n')} ============================================================`); } @@ -72,7 +72,7 @@ function runProcess(app) { const tunnelUrl = matches[matches.length - 1]; ARGO_DOMAIN = new URL(tunnelUrl).hostname; subInfo[0] = `vless://${UUID}@${ARGO_DOMAIN}:443?encryption=none&security=tls&sni=${ARGO_DOMAIN}&fp=chrome&type=ws&path=%2F%3Fed%3D2560#${REMARKS_PREFIX}-ws-argo`; - fs.writeFile(path.join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); + fs.writeFile(path.join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); printSubInfo(); } }; From ca37d12a96f93b8182ac186f002b15ba11fb0408 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:20:09 +0800 Subject: [PATCH 6/7] Change default PORT from 33777 to 8080 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a818012..d380a0b 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const path = require("path"); const { spawn } = require("child_process"); const DOMAIN = "node-xah-hopelee8964348-qehpf89w.leapcell.dev"; -const PORT = process.env.PORT || 33777; +const PORT = process.env.PORT || 8080; const UUID = "1f68008d-4978-44e9-b788-b572f5f78087"; const SHORT_ID = "YOUR_SHORT_ID"; const PUBLIC_KEY = "YOUR_PUBLIC_KEY"; @@ -72,7 +72,7 @@ function runProcess(app) { const tunnelUrl = matches[matches.length - 1]; ARGO_DOMAIN = new URL(tunnelUrl).hostname; subInfo[0] = `vless://${UUID}@${ARGO_DOMAIN}:443?encryption=none&security=tls&sni=${ARGO_DOMAIN}&fp=chrome&type=ws&path=%2F%3Fed%3D2560#${REMARKS_PREFIX}-ws-argo`; - fs.writeFile(path.join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); + fs.writeFile(path。join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); printSubInfo(); } }; From 53ad69d19ae2d59c1319d9273b018e74d317c6c5 Mon Sep 17 00:00:00 2001 From: hope <56390090+hopelee8964@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:30:47 +0800 Subject: [PATCH 7/7] Fix syntax error in fs.writeFile path --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d380a0b..7391dae 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,7 @@ function runProcess(app) { const tunnelUrl = matches[matches.length - 1]; ARGO_DOMAIN = new URL(tunnelUrl).hostname; subInfo[0] = `vless://${UUID}@${ARGO_DOMAIN}:443?encryption=none&security=tls&sni=${ARGO_DOMAIN}&fp=chrome&type=ws&path=%2F%3Fed%3D2560#${REMARKS_PREFIX}-ws-argo`; - fs.writeFile(path。join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); + fs.writeFile(path。join(__dirname, "node.txt"), subInfo.join('\n'), () => { }); printSubInfo(); } };