Update _worker.js

This commit is contained in:
CMLiussss
2024-05-14 21:08:17 +08:00
committed by GitHub
parent a5a2cf89f3
commit d1bb206248

View File

@@ -172,7 +172,7 @@ export default {
socks5Address = url.searchParams.get('socks5') || socks5Address;
if (new RegExp('/socks5=', 'i').test(url.pathname)) socks5Address = url.pathname.split('5=')[1];
else if (new RegExp('/socks://', 'i').test(url.pathname)) {
else if (new RegExp('/socks://', 'i').test(url.pathname) || new RegExp('/socks5://', 'i').test(url.pathname)) {
socks5Address = url.pathname.split('://')[1].split('#')[0];
if (socks5Address.includes('@')){
let userPassword = socks5Address.split('@')[0];