From c8a5e42e3adc1c3a01f4f0880462049103be5460 Mon Sep 17 00:00:00 2001 From: CMLiussss <24787744+cmliu@users.noreply.github.com> Date: Tue, 7 May 2024 13:58:45 +0800 Subject: [PATCH] Update _worker.old.js --- _worker.old.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_worker.old.js b/_worker.old.js index 07612d00..dcdb2b4a 100644 --- a/_worker.old.js +++ b/_worker.old.js @@ -631,7 +631,7 @@ https://github.com/cmliu/epeius } else { const response = await fetch(url ,{ headers: { - 'User-Agent': `${UA} CF-Workers-epeius/cmliu` + 'User-Agent': `CF-Workers-epeius/cmliu` }}); content = await response.text(); } @@ -840,8 +840,8 @@ async function getAddressescsv(tls) { } function surge(content, host) { - const 备改内容 = `skip-cert-verify=true`; - const 正确内容 = `skip-cert-verify=true, ws=true, ws-path=/?ed=2560, ws-headers=Host:"${host}"`; + const 备改内容 = `skip-cert-verify=true, tfo=false, udp-relay=false`; + const 正确内容 = `skip-cert-verify=true, ws=true, ws-path=/?ed=2560, ws-headers=Host:"${host}", tfo=false, udp-relay=false`; content = content.replace(new RegExp(备改内容, 'g'), 正确内容) return content;