Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu authored Mar 29, 2024
1 parent e8b49f6 commit b958ed8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ export default {
path = url.searchParams.get('path');
edgetunnel = url.searchParams.get('edgetunnel') || edgetunnel;
RproxyIP = url.searchParams.get('proxyip') || RproxyIP;
noTLS = env.NOTLS || host.toLowerCase().includes('notls') || host.toLowerCase().includes('worker') || host.toLowerCase().includes('trycloudflare') || noTLS;

if (!url.pathname.includes("/sub")) {
const responseText = `
Expand Down Expand Up @@ -289,7 +288,9 @@ export default {
path = (path[0] === '/') ? path : '/' + path;
}
}


noTLS = env.NOTLS || host.toLowerCase().includes('notls') || host.toLowerCase().includes('worker') || host.toLowerCase().includes('trycloudflare') || noTLS;

if (userAgent.includes('telegram') || userAgent.includes('twitter') || userAgent.includes('miaoko')) {
return new Response('Hello World!');
} else if ((userAgent.includes('clash') || (format === 'clash' && !userAgent.includes('subconverter'))) && !userAgent.includes('nekobox')) {
Expand Down

0 comments on commit b958ed8

Please sign in to comment.