mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:12:33 +08:00
Update _worker.js
This commit is contained in:
@@ -6,7 +6,7 @@ import { connect } from 'cloudflare:sockets';
|
||||
// [Windows] Press "Win + R", input cmd and run: Powershell -NoExit -Command "[guid]::NewGuid()"
|
||||
let userID = '90cd4a77-141a-43c9-991b-08263cfe9c10';
|
||||
|
||||
let proxyIP = 'edgetunnel.anycast.eu.org';// 小白勿动,该地址并不影响你的网速,这是给CF代理使用的。'cdn.xn--b6gac.eu.org', 'cdn-all.xn--b6gac.eu.org', 'edgetunnel.anycast.eu.org'
|
||||
let proxyIP = '';// 小白勿动,该地址并不影响你的网速,这是给CF代理使用的。'cdn.xn--b6gac.eu.org', 'cdn-all.xn--b6gac.eu.org', 'edgetunnel.anycast.eu.org'
|
||||
|
||||
//let sub = '';// 留空则显示原版内容
|
||||
let sub = 'sub.cmliucdn.tk';// 内置优选订阅生成器,可自行搭建 https://github.com/cmliu/WorkerVless2sub
|
||||
@@ -781,7 +781,7 @@ function socks5AddressParser(address) {
|
||||
* @returns {Promise<string>}
|
||||
*/
|
||||
async function getVLESSConfig(userID, hostName, sub, userAgent) {
|
||||
if (!proxyIP) RproxyIP = "true";
|
||||
if (!proxyIP || proxyIP === '') RproxyIP = "true";
|
||||
// 如果sub为空,则显示原始内容
|
||||
if (!sub) {
|
||||
const vlessMain = `vless://${userID}@${hostName}:443?encryption=none&security=tls&sni=${hostName}&fp=randomized&type=ws&host=${hostName}&path=%2F%3Fed%3D2048#${hostName}`;
|
||||
|
||||
Reference in New Issue
Block a user