From 2b8e662f8105a44656fd129a49bc94ff3905acfa Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 30 Nov 2015 14:59:32 -0500 Subject: [PATCH] connect through introducer in v4 thread --- SSU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSU.cpp b/SSU.cpp index 2f266a99..4005e228 100644 --- a/SSU.cpp +++ b/SSU.cpp @@ -278,7 +278,7 @@ namespace transport { if (router->UsesIntroducer ()) { - CreateSessionThroughIntroducer (router, peerTest); + m_Service.post (std::bind (&SSUServer::CreateSessionThroughIntroducer, this, router, peerTest)); // always V4 thread return; } auto address = router->GetSSUAddress (!context.SupportsV6 ()); @@ -321,7 +321,7 @@ namespace transport { if (router && router->UsesIntroducer ()) { - auto address = router->GetSSUAddress (!context.SupportsV6 ()); + auto address = router->GetSSUAddress (true); // v4 only for now if (address) { boost::asio::ip::udp::endpoint remoteEndpoint (address->host, address->port);