Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2019-04-21 03:48:35 +0300
committerrofl0r <retnyg@gmx.net>2019-04-21 03:48:38 +0300
commit067885694dede9fc31da258b482d0983b980ef4d (patch)
tree3ab5e034608c026ba1a5bd4c5db10e9c41d39d1a
parente895fb713ac1c1e92ee0795645f220573181c6fb (diff)
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.
-rw-r--r--src/libproxychains.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libproxychains.c b/src/libproxychains.c
index 6b6467c..8446bb0 100644
--- a/src/libproxychains.c
+++ b/src/libproxychains.c
@@ -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;