mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 05:47:17 +01:00
Merge branch 'openssl' into http_remove_referer
This commit is contained in:
commit
c10d628a45
|
@ -273,6 +273,8 @@ namespace client
|
||||||
{
|
{
|
||||||
i2p::data::PrivateKeys k;
|
i2p::data::PrivateKeys k;
|
||||||
LoadPrivateKeys (k, keys, sigType);
|
LoadPrivateKeys (k, keys, sigType);
|
||||||
|
localDestination = FindLocalDestination (k.GetPublic ()->GetIdentHash ());
|
||||||
|
if (!localDestination)
|
||||||
localDestination = CreateNewLocalDestination (k, false, &options);
|
localDestination = CreateNewLocalDestination (k, false, &options);
|
||||||
}
|
}
|
||||||
auto clientTunnel = new I2PClientTunnel (name, dest, address, port, localDestination, destinationPort);
|
auto clientTunnel = new I2PClientTunnel (name, dest, address, port, localDestination, destinationPort);
|
||||||
|
@ -296,9 +298,12 @@ namespace client
|
||||||
std::map<std::string, std::string> options;
|
std::map<std::string, std::string> options;
|
||||||
ReadI2CPOptions (section, options);
|
ReadI2CPOptions (section, options);
|
||||||
|
|
||||||
|
std::shared_ptr<ClientDestination> localDestination = nullptr;
|
||||||
i2p::data::PrivateKeys k;
|
i2p::data::PrivateKeys k;
|
||||||
LoadPrivateKeys (k, keys, sigType);
|
LoadPrivateKeys (k, keys, sigType);
|
||||||
auto localDestination = CreateNewLocalDestination (k, true, &options);
|
localDestination = FindLocalDestination (k.GetPublic ()->GetIdentHash ());
|
||||||
|
if (!localDestination)
|
||||||
|
localDestination = CreateNewLocalDestination (k, true, &options);
|
||||||
I2PServerTunnel * serverTunnel = (type == I2P_TUNNELS_SECTION_TYPE_HTTP) ?
|
I2PServerTunnel * serverTunnel = (type == I2P_TUNNELS_SECTION_TYPE_HTTP) ?
|
||||||
new I2PServerTunnelHTTP (name, host, port, localDestination, inPort) :
|
new I2PServerTunnelHTTP (name, host, port, localDestination, inPort) :
|
||||||
new I2PServerTunnel (name, host, port, localDestination, inPort);
|
new I2PServerTunnel (name, host, port, localDestination, inPort);
|
||||||
|
|
Loading…
Reference in a new issue