1
0
mirror of https://github.com/rofl0r/proxychains-ng synced 2026-05-14 17:42:36 +08:00

proxy url parser: look for @ from the right side

fixes usernames with @ in them.
this is only relevant for support of new url-style proxy addresses.
This commit is contained in:
rofl0r
2019-04-21 01:48:35 +01:00
Unverified
parent e895fb713a
commit 067885694d
+1 -1
View File
@@ -208,7 +208,7 @@ static int proxy_from_string(const char *proxystring,
proxystring[next_token++] != ':' ||
proxystring[next_token++] != '/' ||
proxystring[next_token++] != '/') goto inv_string;
const char *at = strchr(proxystring+next_token, '@');
const char *at = strrchr(proxystring+next_token, '@');
if(at) {
if(proxytype == RS_PT_SOCKS4)
return 0;