fix comment

This commit is contained in:
DennisYu07 2026-03-30 14:54:17 +08:00
parent bba3ab93b1
commit 588ef60411
2 changed files with 26 additions and 1 deletions

View file

@ -27,7 +27,8 @@ export function normalizeProxyUrl(
}
// Check if the URL already has a protocol prefix
if (/^https?:\/\//i.test(trimmed)) {
// Support http, https, socks, socks4, socks5 protocols
if (/^(https?|socks[45]?):\/\//i.test(trimmed)) {
return trimmed;
}