publish NTCP2 ipv6 address if applicable

This commit is contained in:
orignal 2018-08-27 15:01:43 -04:00
parent ff8fb8000d
commit 8753186a0d
3 changed files with 38 additions and 0 deletions

View file

@ -1179,6 +1179,8 @@ namespace transport
else
{
LogPrint (eLogDebug, "NTCP2: Connected to ", conn->GetSocket ().remote_endpoint ());
if (conn->GetSocket ().local_endpoint ().protocol () == boost::asio::ip::tcp::v6()) // ipv6
context.UpdateNTCP2V6Address (conn->GetSocket ().local_endpoint ().address ());
conn->ClientLogin ();
}
}