diff --git a/_worker.js b/_worker.js index 9ca970c25..d7e7a79c4 100644 --- a/_worker.js +++ b/_worker.js @@ -3,9 +3,9 @@ import { connect } from 'cloudflare:sockets'; // How to generate your own UUID: // [Windows] Press "Win + R", input cmd and run: Powershell -NoExit -Command "[guid]::NewGuid()" -let userID = '0eed06f7-b281-4671-987a-9ffc1bd3bc78'; +let userID = '0eed06f7-b281-4671-987a-9ffc1bd3bc78'; // Change this uuid before use this code!! -const proxyIPs = ['202.93.229.2', 'cdn.xn--b6gac.eu.org', 'cdn-all.xn--b6gac.eu.org', 'workers.bestip.one']; +const proxyIPs = ['202.93.229.2', 'cdn.xn--b6gac.eu.org', 'cdn-all.xn--b6gac.eu.org', 'workers.bestip.one']; // Change or add new proxyIP right here!! // if you want to use ipv6 or single proxyIP, please add comment at this line and remove comment at the next line let proxyIP = proxyIPs[Math.floor(Math.random() * proxyIPs.length)]; @@ -200,7 +200,7 @@ async function vlessOverWSHandler(request) { isDns = true; } - // ["version", "附加信息长度 N"] + // ["version", "Additional Information Length N"] const vlessResponseHeader = new Uint8Array([vlessVersion[0], 0]); const rawClientData = chunk.slice(rawDataIndex); @@ -703,12 +703,12 @@ function getVLESSConfig(userIDs, hostName) { return `

UUID: ${userID}

${hashSeparator}\nv2ray default ip --------------------------------------------------------------- ${vlessMain} - + --------------------------------------------------------------- v2ray with bestip --------------------------------------------------------------- ${vlessSec} - + ---------------------------------------------------------------`; }).join('\n'); const sublink = `https://${hostName}/sub/${userIDArray[0]}?format=clash` @@ -716,38 +716,35 @@ ${vlessSec} const clash_link = `https://api.v1.mk/sub?target=clash&url=${encodeURIComponent(sublink)}&insert=false&emoji=true&list=false&tfo=false&scv=true&fdn=false&sort=false&new_name=true`; // Prepare header string const header = ` -

图片描述 -Welcome! This function generates configuration for VLESS protocol. If you found this useful, please check our GitHub project for more: -欢迎!这是生成 VLESS 协议的配置。如果您发现这个项目很好用,请查看我们的 GitHub 项目给我一个star: -EDtunnel - https://github.com/3Kmfi6HP/EDtunnel - -VLESS 节点订阅连接 -Clash for Windows 节点订阅连接 -Clash 节点订阅连接 -优选IP自动节点订阅 -Clash优选IP自动 -singbox优选IP自动 -nekobox优选IP自动 -v2rayNG优选IP自动

`; +Welcome! This function generates configuration for VLESS protocol. If you found this useful, please give a star to my repository +edtunnel - https://github.com/yujiwh/edtunnel +VLESS +Clash for Windows +Clash +Preferred IP +Clash Preferred IP +Singbox Preferred IP +Nekobox Preferred IP +v2rayNG Preferred IP

`; // HTML Head with CSS and FontAwesome library const htmlHead = ` - EDtunnel: VLESS configuration - - + EDT VLESS configuration + + - + - + - + - +