mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
SSL support for server tunnels
This commit is contained in:
parent
8f9dae8556
commit
e82662b389
5 changed files with 126 additions and 62 deletions
|
@ -726,7 +726,8 @@ namespace client
|
|||
|
||||
std::string address = section.second.get<std::string> (I2P_SERVER_TUNNEL_ADDRESS, "");
|
||||
bool isUniqueLocal = section.second.get(I2P_SERVER_TUNNEL_ENABLE_UNIQUE_LOCAL, true);
|
||||
|
||||
bool ssl = section.second.get(I2P_SERVER_TUNNEL_SSL, false);
|
||||
|
||||
// I2CP
|
||||
std::map<std::string, std::string> options;
|
||||
ReadI2CPOptions (section, true, options);
|
||||
|
@ -799,11 +800,13 @@ namespace client
|
|||
|
||||
if (!address.empty ())
|
||||
serverTunnel->SetLocalAddress (address);
|
||||
if(!isUniqueLocal)
|
||||
if (!isUniqueLocal)
|
||||
{
|
||||
LogPrint(eLogInfo, "Clients: Disabling loopback address mapping");
|
||||
serverTunnel->SetUniqueLocal(isUniqueLocal);
|
||||
}
|
||||
if (ssl)
|
||||
serverTunnel->SetSSL (true);
|
||||
if (accessList.length () > 0)
|
||||
{
|
||||
std::set<i2p::data::IdentHash> idents;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue