From 73a0adc89258ae5c99c3154965d4ad353bdfb63e Mon Sep 17 00:00:00 2001 From: 3Kmfi6HP <58669916+3Kmfi6HP@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:51:10 +0700 Subject: [PATCH] Update _worker.js --- _worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index f16e43520..12fcaf819 100644 --- a/_worker.js +++ b/_worker.js @@ -8,6 +8,7 @@ import { connect } from 'cloudflare:sockets'; let userID = 'd342d11e-d424-4583-b36e-524ab1f0afa4'; const proxyIPs = ['cdn-all.xn--b6gac.eu.org', 'cdn.xn--b6gac.eu.org', 'cdn-b100.xn--b6gac.eu.org', 'edgetunnel.anycast.eu.org', 'cdn.anycast.eu.org']; + let proxyIP = proxyIPs[Math.floor(Math.random() * proxyIPs.length)]; let dohURL = 'https://sky.rethinkdns.com/1:-Pf_____9_8A_AMAIgE8kMABVDDmKOHTAKg='; // https://cloudflare-dns.com/dns-query or https://dns.google/dns-query @@ -836,7 +837,7 @@ function getVLESSConfig(userIDs, hostName) { header.push(`欢迎!这是生成 VLESS 协议的配置。如果您发现这个项目很好用,请查看我们的 GitHub 项目给我一个star:\n`); header.push(`\nEDtunnel - https://github.com/3Kmfi6HP/EDtunnel\n`); header.push(`\n\n\n`.replace(/USERNAME/g, "3Kmfi6HP").replace(/REPOSITORY/g, "EDtunnel")); - header.push(`VLESS 节点订阅连接\nClash 节点订阅连接

\n`); + header.push(`VLESS 节点订阅连接\nClash 节点订阅连接\nClash 节点订阅连接2

\n`); header.push(``); // Generate output string for each userID