mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-16 12:21:47 +02:00
pass gzip parameter to UDP tunnels
This commit is contained in:
parent
e1b1032df9
commit
d4bfeab36c
8 changed files with 18 additions and 14 deletions
libi2pd_client
|
@ -569,7 +569,8 @@ namespace client
|
|||
if (!localDestination)
|
||||
localDestination = m_SharedLocalDestination;
|
||||
|
||||
auto clientTunnel = std::make_shared<I2PUDPClientTunnel>(name, dest, end, localDestination, destinationPort);
|
||||
bool gzip = section.second.get (I2P_CLIENT_TUNNEL_GZIP, true);
|
||||
auto clientTunnel = std::make_shared<I2PUDPClientTunnel>(name, dest, end, localDestination, destinationPort, gzip);
|
||||
if(m_ClientForwards.insert(std::make_pair(end, clientTunnel)).second)
|
||||
clientTunnel->Start();
|
||||
else
|
||||
|
@ -672,7 +673,7 @@ namespace client
|
|||
// TODO: hostnames
|
||||
auto localAddress = boost::asio::ip::address::from_string(address);
|
||||
boost::asio::ip::udp::endpoint endpoint(boost::asio::ip::address::from_string(host), port);
|
||||
auto serverTunnel = std::make_shared<I2PUDPServerTunnel>(name, localDestination, localAddress, endpoint, port);
|
||||
auto serverTunnel = std::make_shared<I2PUDPServerTunnel>(name, localDestination, localAddress, endpoint, port, gzip);
|
||||
if(!isUniqueLocal)
|
||||
{
|
||||
LogPrint(eLogInfo, "Clients: disabling loopback address mapping");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue