mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2025-01-03 01:05:50 +00: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:
parent
e895fb713a
commit
067885694d
@ -208,7 +208,7 @@ static int proxy_from_string(const char *proxystring,
|
|||||||
proxystring[next_token++] != ':' ||
|
proxystring[next_token++] != ':' ||
|
||||||
proxystring[next_token++] != '/' ||
|
proxystring[next_token++] != '/' ||
|
||||||
proxystring[next_token++] != '/') goto inv_string;
|
proxystring[next_token++] != '/') goto inv_string;
|
||||||
const char *at = strchr(proxystring+next_token, '@');
|
const char *at = strrchr(proxystring+next_token, '@');
|
||||||
if(at) {
|
if(at) {
|
||||||
if(proxytype == RS_PT_SOCKS4)
|
if(proxytype == RS_PT_SOCKS4)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user