|
|
@ -20,14 +20,14 @@ namespace transport |
|
|
|
if (router) |
|
|
|
if (router) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// we are client
|
|
|
|
// we are client
|
|
|
|
auto address = router->GetSSUAddress (); |
|
|
|
auto address = router->GetSSUAddress (false); |
|
|
|
if (address) m_IntroKey = address->key; |
|
|
|
if (address) m_IntroKey = address->key; |
|
|
|
m_Data.AdjustPacketSize (router); // mtu
|
|
|
|
m_Data.AdjustPacketSize (router); // mtu
|
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
// we are server
|
|
|
|
// we are server
|
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (); |
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (false); |
|
|
|
if (address) m_IntroKey = address->key; |
|
|
|
if (address) m_IntroKey = address->key; |
|
|
|
} |
|
|
|
} |
|
|
|
m_CreationTime = i2p::util::GetSecondsSinceEpoch (); |
|
|
|
m_CreationTime = i2p::util::GetSecondsSinceEpoch (); |
|
|
@ -108,7 +108,7 @@ namespace transport |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
// try own intro key
|
|
|
|
// try own intro key
|
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (); |
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (false); |
|
|
|
if (!address) |
|
|
|
if (!address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
@ -366,7 +366,7 @@ namespace transport |
|
|
|
|
|
|
|
|
|
|
|
void SSUSession::SendRelayRequest (const i2p::data::RouterInfo::Introducer& introducer, uint32_t nonce) |
|
|
|
void SSUSession::SendRelayRequest (const i2p::data::RouterInfo::Introducer& introducer, uint32_t nonce) |
|
|
|
{ |
|
|
|
{ |
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (); |
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (false); |
|
|
|
if (!address) |
|
|
|
if (!address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
|