mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user