Update _worker.js

This commit is contained in:
CMLiussss
2024-02-10 23:18:55 +08:00
committed by GitHub
parent 3c0c9ec739
commit 5cbb5422e6

View File

@@ -71,7 +71,8 @@ export default {
return new Response('Not found', { status: 404 });
}
} else {
if (new RegExp('/proxyip', 'i').test(url.pathname)) proxyIP = url.pathname.split("=")[1];
if (new RegExp('/proxyip=', 'i').test(url.pathname)) proxyIP = url.pathname.split("=")[1];
else if (new RegExp('/proxyip.', 'i').test(url.pathname)) proxyIP = url.pathname.split("/proxyip.")[1];
return await vlessOverWSHandler(request);
}
} catch (err) {