|
|
@ -23,8 +23,10 @@ namespace client |
|
|
|
int outQty = DEFAULT_OUTBOUND_TUNNELS_QUANTITY; |
|
|
|
int outQty = DEFAULT_OUTBOUND_TUNNELS_QUANTITY; |
|
|
|
int numTags = DEFAULT_TAGS_TO_SEND; |
|
|
|
int numTags = DEFAULT_TAGS_TO_SEND; |
|
|
|
std::shared_ptr<std::vector<i2p::data::IdentHash> > explicitPeers; |
|
|
|
std::shared_ptr<std::vector<i2p::data::IdentHash> > explicitPeers; |
|
|
|
try { |
|
|
|
try |
|
|
|
if (params) { |
|
|
|
{ |
|
|
|
|
|
|
|
if (params) |
|
|
|
|
|
|
|
{ |
|
|
|
auto it = params->find (I2CP_PARAM_INBOUND_TUNNEL_LENGTH); |
|
|
|
auto it = params->find (I2CP_PARAM_INBOUND_TUNNEL_LENGTH); |
|
|
|
if (it != params->end ()) |
|
|
|
if (it != params->end ()) |
|
|
|
inLen = std::stoi(it->second); |
|
|
|
inLen = std::stoi(it->second); |
|
|
@ -55,8 +57,15 @@ namespace client |
|
|
|
LogPrint (eLogInfo, "Destination: Added to explicit peers list: ", b64); |
|
|
|
LogPrint (eLogInfo, "Destination: Added to explicit peers list: ", b64); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
it = params->find (I2CP_PARAM_INBOUND_NICKNAME); |
|
|
|
|
|
|
|
if (it != params->end ()) |
|
|
|
|
|
|
|
m_Nickname = it->second; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
m_Nickname = i2p::data::GetIdentHashAbbreviation (GetIdentHash ()); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (std::exception & ex) { |
|
|
|
} |
|
|
|
|
|
|
|
catch (std::exception & ex) |
|
|
|
|
|
|
|
{ |
|
|
|
LogPrint(eLogError, "Destination: unable to parse parameters for destination: ", ex.what()); |
|
|
|
LogPrint(eLogError, "Destination: unable to parse parameters for destination: ", ex.what()); |
|
|
|
} |
|
|
|
} |
|
|
|
SetNumTags (numTags); |
|
|
|
SetNumTags (numTags); |
|
|
|