send update local RouterInfo

This commit is contained in:
orignal 2022-06-13 14:02:36 -04:00
parent 605ccf3e02
commit 3bef6383d9
5 changed files with 29 additions and 5 deletions

View file

@ -1169,9 +1169,9 @@ namespace transport
}
}
void NTCP2Session::SendLocalRouterInfo ()
void NTCP2Session::SendLocalRouterInfo (bool update)
{
if (!IsOutgoing ()) // we send it in SessionConfirmed
if (update || !IsOutgoing ()) // we send it in SessionConfirmed for ougoing session
m_Server.GetService ().post (std::bind (&NTCP2Session::SendRouterInfo, shared_from_this ()));
}