|
|
|
@ -115,7 +115,7 @@ namespace transport
@@ -115,7 +115,7 @@ namespace transport
|
|
|
|
|
auto addresses = context.GetRouterInfo ().GetAddresses (); |
|
|
|
|
for (auto& address : addresses) |
|
|
|
|
{ |
|
|
|
|
if (address.transportStyle == RouterInfo::eTransportNTCP) |
|
|
|
|
if (address.transportStyle == RouterInfo::eTransportNTCP && address.host.is_v4 ()) |
|
|
|
|
{ |
|
|
|
|
m_NTCPAcceptor = new boost::asio::ip::tcp::acceptor (m_Service, |
|
|
|
|
boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), address.port)); |
|
|
|
@ -127,8 +127,11 @@ namespace transport
@@ -127,8 +127,11 @@ namespace transport
|
|
|
|
|
|
|
|
|
|
if (context.SupportsV6 ()) |
|
|
|
|
{ |
|
|
|
|
m_NTCPV6Acceptor = new boost::asio::ip::tcp::acceptor (m_Service, |
|
|
|
|
boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v6(), address.port)); |
|
|
|
|
m_NTCPV6Acceptor = new boost::asio::ip::tcp::acceptor (m_Service); |
|
|
|
|
m_NTCPV6Acceptor->open (boost::asio::ip::tcp::v6()); |
|
|
|
|
m_NTCPV6Acceptor->set_option (boost::asio::ip::v6_only (true)); |
|
|
|
|
m_NTCPV6Acceptor->bind (boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v6(), address.port)); |
|
|
|
|
m_NTCPV6Acceptor->listen (); |
|
|
|
|
|
|
|
|
|
LogPrint ("Start listening V6 TCP port ", address.port); |
|
|
|
|
auto conn = new NTCPServerConnection (m_Service); |
|
|
|
|