mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +00:00 
			
		
		
		
	@@ -3,11 +3,15 @@
 | 
				
			|||||||
# include "core.h"
 | 
					# include "core.h"
 | 
				
			||||||
# include "common.h"
 | 
					# include "common.h"
 | 
				
			||||||
# include "debug.h"
 | 
					# include "debug.h"
 | 
				
			||||||
 | 
					#include <arpa/inet.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void DUMP_PROXY_CHAIN(proxy_data *pchain, unsigned int count) {
 | 
					void DUMP_PROXY_CHAIN(proxy_data *pchain, unsigned int count) {
 | 
				
			||||||
	char ip_buf[16];
 | 
						char ip_buf[INET6_ADDRSTRLEN];
 | 
				
			||||||
	for (; count; pchain++, count--) {
 | 
						for (; count; pchain++, count--) {
 | 
				
			||||||
		pc_stringfromipv4(&pchain->ip.octet[0], ip_buf);
 | 
							if(!inet_ntop(pchain->ip.is_v6?AF_INET6:AF_INET,pchain->ip.addr.v6,ip_buf,sizeof ip_buf)) {
 | 
				
			||||||
 | 
								proxychains_write_log(LOG_PREFIX "error: ip address conversion failed\n");
 | 
				
			||||||
 | 
								continue;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		PDEBUG("[%s] %s %s:%d", proxy_state_strmap[pchain->ps],
 | 
							PDEBUG("[%s] %s %s:%d", proxy_state_strmap[pchain->ps],
 | 
				
			||||||
		       proxy_type_strmap[pchain->pt], 
 | 
							       proxy_type_strmap[pchain->pt], 
 | 
				
			||||||
		       ip_buf, htons(pchain->port));
 | 
							       ip_buf, htons(pchain->port));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user