mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 17:12:33 +08:00
Update _worker.js
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user