mirror of
				https://github.com/rofl0r/proxychains-ng.git
				synced 2025-11-04 00:56:03 +00:00 
			
		
		
		
	support 'raw' proxy type (#348)
This commit is contained in:
		@@ -222,6 +222,10 @@ static int tunnel_to(int sock, ip_type ip, unsigned short port, proxy_type pt, c
 | 
			
		||||
	int v6 = ip.is_v6;
 | 
			
		||||
	
 | 
			
		||||
	switch (pt) {
 | 
			
		||||
		case RAW_TYPE: {
 | 
			
		||||
			return SUCCESS;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
		case HTTP_TYPE:{
 | 
			
		||||
			if(!dns_len) {
 | 
			
		||||
				if(!inet_ntop(v6?AF_INET6:AF_INET,ip.addr.v6,ip_buf,sizeof ip_buf)) {
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,8 @@ typedef enum {
 | 
			
		||||
typedef enum {
 | 
			
		||||
	HTTP_TYPE,
 | 
			
		||||
	SOCKS4_TYPE,
 | 
			
		||||
	SOCKS5_TYPE
 | 
			
		||||
	SOCKS5_TYPE,
 | 
			
		||||
	RAW_TYPE
 | 
			
		||||
} proxy_type;
 | 
			
		||||
 | 
			
		||||
typedef enum {
 | 
			
		||||
 
 | 
			
		||||
@@ -354,6 +354,8 @@ inv_host:
 | 
			
		||||
 | 
			
		||||
				if(!strcmp(type, "http")) {
 | 
			
		||||
					pd[count].pt = HTTP_TYPE;
 | 
			
		||||
				} else if(!strcmp(type, "raw")) {
 | 
			
		||||
					pd[count].pt = RAW_TYPE;
 | 
			
		||||
				} else if(!strcmp(type, "socks4")) {
 | 
			
		||||
					pd[count].pt = SOCKS4_TYPE;
 | 
			
		||||
				} else if(!strcmp(type, "socks5")) {
 | 
			
		||||
 
 | 
			
		||||
@@ -145,7 +145,8 @@ tcp_connect_time_out 8000
 | 
			
		||||
#	        http	192.168.39.93	8080	
 | 
			
		||||
#		
 | 
			
		||||
#
 | 
			
		||||
#       proxy types: http, socks4, socks5
 | 
			
		||||
#       proxy types: http, socks4, socks5, raw
 | 
			
		||||
#         * raw: The traffic is simply forwarded to the proxy without modification.
 | 
			
		||||
#        ( auth types supported: "basic"-http  "user/pass"-socks )
 | 
			
		||||
#
 | 
			
		||||
[ProxyList]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user