Skip to content

Commit

Permalink
Update _worker.old.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu authored May 7, 2024
1 parent 6703d20 commit c8a5e42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _worker.old.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c8a5e42

Please sign in to comment.