1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-02-02 02:44:15 +00:00

connect through introducer in v4 thread

This commit is contained in:
orignal 2015-11-30 14:59:32 -05:00
parent 0a6d849435
commit 2b8e662f81

View File

@ -278,7 +278,7 @@ namespace transport
{ {
if (router->UsesIntroducer ()) if (router->UsesIntroducer ())
{ {
CreateSessionThroughIntroducer (router, peerTest); m_Service.post (std::bind (&SSUServer::CreateSessionThroughIntroducer, this, router, peerTest)); // always V4 thread
return; return;
} }
auto address = router->GetSSUAddress (!context.SupportsV6 ()); auto address = router->GetSSUAddress (!context.SupportsV6 ());
@ -321,7 +321,7 @@ namespace transport
{ {
if (router && router->UsesIntroducer ()) if (router && router->UsesIntroducer ())
{ {
auto address = router->GetSSUAddress (!context.SupportsV6 ()); auto address = router->GetSSUAddress (true); // v4 only for now
if (address) if (address)
{ {
boost::asio::ip::udp::endpoint remoteEndpoint (address->host, address->port); boost::asio::ip::udp::endpoint remoteEndpoint (address->host, address->port);