|
|
@ -945,9 +945,13 @@ namespace data |
|
|
|
|
|
|
|
|
|
|
|
std::shared_ptr<RouterProfile> RouterInfo::GetProfile () const |
|
|
|
std::shared_ptr<RouterProfile> RouterInfo::GetProfile () const |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!m_Profile) |
|
|
|
auto profile = m_Profile; |
|
|
|
m_Profile = GetRouterProfile (GetIdentHash ()); |
|
|
|
if (!profile) |
|
|
|
return m_Profile; |
|
|
|
{ |
|
|
|
|
|
|
|
profile = GetRouterProfile (GetIdentHash ()); |
|
|
|
|
|
|
|
m_Profile = profile; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return profile; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void RouterInfo::Encrypt (const uint8_t * data, uint8_t * encrypted) const |
|
|
|
void RouterInfo::Encrypt (const uint8_t * data, uint8_t * encrypted) const |
|
|
|