From 855f3833d29e6e771fc9007bb961ba77f31b24d3 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 6 Jul 2015 18:03:16 -0400 Subject: [PATCH] bind to loopback --- I2PService.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/I2PService.h b/I2PService.h index 37c06828..a088953e 100644 --- a/I2PService.h +++ b/I2PService.h @@ -83,11 +83,11 @@ namespace client public: TCPIPAcceptor (int port, std::shared_ptr localDestination = nullptr) : I2PService(localDestination), - m_Acceptor (GetService (), boost::asio::ip::tcp::endpoint (boost::asio::ip::tcp::v4(), port)), + m_Acceptor (GetService (), boost::asio::ip::tcp::endpoint (boost::asio::ip::address::from_string("127.0.0.1"), port)), m_Timer (GetService ()) {} TCPIPAcceptor (int port, i2p::data::SigningKeyType kt) : I2PService(kt), - m_Acceptor (GetService (), boost::asio::ip::tcp::endpoint (boost::asio::ip::tcp::v4(), port)), + m_Acceptor (GetService (), boost::asio::ip::tcp::endpoint (boost::asio::ip::address::from_string("127.0.0.1"), port)), m_Timer (GetService ()) {} virtual ~TCPIPAcceptor () { TCPIPAcceptor::Stop(); } //If you override this make sure you call it from the children