address parameter for server tunnels

This commit is contained in:
orignal 2021-02-19 15:15:58 -05:00
parent 94659ba890
commit 616f0b2a21
3 changed files with 33 additions and 3 deletions

View file

@ -750,12 +750,13 @@ namespace client
else // regular server tunnel by default
serverTunnel = std::make_shared<I2PServerTunnel> (name, host, port, localDestination, inPort, gzip);
if (!address.empty ())
serverTunnel->SetLocalAddress (address);
if(!isUniqueLocal)
{
LogPrint(eLogInfo, "Clients: disabling loopback address mapping");
serverTunnel->SetUniqueLocal(isUniqueLocal);
}
if (accessList.length () > 0)
{
std::set<i2p::data::IdentHash> idents;