|
|
@ -120,7 +120,8 @@ namespace transport |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
// try own intro key
|
|
|
|
// try own intro key
|
|
|
|
auto address = i2p::context.GetRouterInfo ().GetSSUAddress (false); |
|
|
|
auto address = IsV6 () ? i2p::context.GetRouterInfo ().GetSSUV6Address () : |
|
|
|
|
|
|
|
i2p::context.GetRouterInfo ().GetSSUAddress (true); |
|
|
|
if (!address) |
|
|
|
if (!address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
@ -390,7 +391,8 @@ 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 (false); |
|
|
|
auto address = IsV6 () ? i2p::context.GetRouterInfo ().GetSSUV6Address () : |
|
|
|
|
|
|
|
i2p::context.GetRouterInfo ().GetSSUAddress (true); |
|
|
|
if (!address) |
|
|
|
if (!address) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
|
LogPrint (eLogInfo, "SSU is not supported"); |
|
|
@ -689,6 +691,8 @@ namespace transport |
|
|
|
} |
|
|
|
} |
|
|
|
// delete request
|
|
|
|
// delete request
|
|
|
|
m_RelayRequests.erase (it); |
|
|
|
m_RelayRequests.erase (it); |
|
|
|
|
|
|
|
// cancel connect timer
|
|
|
|
|
|
|
|
m_ConnectTimer.cancel (); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
LogPrint (eLogError, "SSU: Unsolicited RelayResponse, nonce=", nonce); |
|
|
|
LogPrint (eLogError, "SSU: Unsolicited RelayResponse, nonce=", nonce); |
|
|
|