create addresses in defualt constructor

This commit is contained in:
orignal 2016-07-13 22:33:39 -04:00
parent c4721e1020
commit 3e5581e094
2 changed files with 6 additions and 1 deletions

View file

@ -15,6 +15,11 @@ namespace i2p
{
namespace data
{
RouterInfo::RouterInfo (): m_Buffer (nullptr)
{
m_Addresses = std::make_shared<Addresses>(); // create empty list
}
RouterInfo::RouterInfo (const std::string& fullPath):
m_FullPath (fullPath), m_IsUpdated (false), m_IsUnreachable (false),
m_SupportedTransports (0), m_Caps (0)