mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 09:06:05 +00:00 
			
		
		
		
	Fix bug in hostsreader
hostsreader_get() used to assign the IP address to both `name` and `ip` fields in `struct hostsreader`, which led to proxychains effectively ignoring the contents of /etc/hosts.
This commit is contained in:
		
				
					committed by
					
						
						rofl0r
					
				
			
			
				
	
			
			
			
						parent
						
							672bf7661d
						
					
				
				
					commit
					f85cecdabe
				
			@@ -44,7 +44,7 @@ int hostsreader_get(struct hostsreader *ctx, char* buf, size_t bufsize) {
 | 
			
		||||
			l--;
 | 
			
		||||
		}
 | 
			
		||||
		if(!l || !*p) continue;
 | 
			
		||||
		ctx->name = buf;
 | 
			
		||||
		ctx->name = p;
 | 
			
		||||
		while(*p && !isspace(*p) && l) {
 | 
			
		||||
			p++;
 | 
			
		||||
			l--;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user