From b65f8cfa47b4bb6684ad9916590ba19aa9d4b245 Mon Sep 17 00:00:00 2001 From: CMLiussss <24787744+cmliu@users.noreply.github.com> Date: Sun, 11 Feb 2024 19:47:23 +0800 Subject: [PATCH] Update _worker.js --- _worker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_worker.js b/_worker.js index 9cff2cb..0e1db00 100644 --- a/_worker.js +++ b/_worker.js @@ -16,7 +16,7 @@ let subconfig = "https://raw.githubusercontent.com/cmliu/edgetunnel/main/Clash/c // Setting the address will ignore proxyIP // Example: user:pass@host:port or host:port let socks5Address = ''; -let RproxyIP = "false"; +let RproxyIP = !proxyIP ? 'true' : 'false'; if (!isValidUUID(userID)) { throw new Error('uuid is not valid'); } @@ -782,7 +782,6 @@ function socks5AddressParser(address) { * @returns {Promise} */ async function getVLESSConfig(userID, hostName, sub, userAgent, proxyIP) { - if (!proxyIP || proxyIP === '') RproxyIP = "true"; // 如果sub为空,则显示原始内容 if (!sub || sub === '') { const vlessMain = `vless://${userID}@${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`;