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:
@@ -808,7 +808,7 @@ async function getVLESSConfig(userID, hostName, sub, userAgent) {
|
||||
// 如果sub不为空且UA为clash,则发起特定请求
|
||||
if (typeof fetch === 'function') {
|
||||
try {
|
||||
const response = await fetch(`https://v.id9.cc/sub?target=clash&url=https%3A%2F%2F${hostName}%2F${userID}&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=false&fdn=false&sort=false&new_name=true`);
|
||||
const response = await fetch(`https://v.id9.cc/sub?target=clash&url=https%3A%2F%2F${hostName}%2F${userID}&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2Fcmliu%2Fedgetunnel%2Fmain%2FClash%2Fconfig%2FACL4SSR_Online_Full_MultiMode.ini&emoji=true&list=false&tfo=false&scv=false&fdn=false&sort=false&new_name=true`);
|
||||
const content = await response.text();
|
||||
return content;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user