mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	enable outproxy on socks
This commit is contained in:
		
							parent
							
								
									062d8d0f4f
								
							
						
					
					
						commit
						dfe08c1ec9
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -500,7 +500,8 @@ namespace client
 | 
			
		|||
						if (type == I2P_TUNNELS_SECTION_TYPE_SOCKS)
 | 
			
		||||
						{
 | 
			
		||||
							// socks proxy
 | 
			
		||||
							auto tun = std::make_shared<i2p::proxy::SOCKSProxy>(name, address, port, false, "", destinationPort, localDestination);
 | 
			
		||||
							std::string outproxy = section.second.get("outproxy", "");
 | 
			
		||||
							auto tun = std::make_shared<i2p::proxy::SOCKSProxy>(name, address, port, !outproxy.empty(), outproxy, destinationPort, localDestination);
 | 
			
		||||
							clientTunnel = tun;
 | 
			
		||||
							clientEndpoint = tun->GetLocalEndpoint ();
 | 
			
		||||
						}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue