From aa11a5deb8b459325c0cae4d84c043e595129c2f Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sun, 21 Aug 2016 19:27:01 -0400 Subject: [PATCH] fix --- I2PTunnel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index 641c5795..5f17dd9c 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -539,7 +539,7 @@ namespace client } /** create new */ boost::asio::ip::udp::endpoint ep(boost::asio::ip::address::from_string("127.0.0.1"), 0); - m_Sessions.push_back(UDPSession(m_Service, ep, m_Destination, ep, ih, localPort, remotePort)); + m_Sessions.push_back(UDPSession(m_Service, ep, m_Destination, m_Endpoint, ih, localPort, remotePort)); return m_Sessions.back(); } @@ -554,7 +554,9 @@ namespace client { Receive(); LogPrint(eLogDebug, "UDPSession: bound to ", IPSocket.local_endpoint()); - + if (localEndpoint == endpoint) { + SendEndpoint = IPSocket.local_endpoint(); + } }