From 23275a59498c9dd2fcbf286891af7aa16eab24d9 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 6 Jul 2015 17:45:12 -0400 Subject: [PATCH] have http server bind to loopback --- HTTPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTTPServer.cpp b/HTTPServer.cpp index c9048727..b2b080a5 100644 --- a/HTTPServer.cpp +++ b/HTTPServer.cpp @@ -1044,7 +1044,7 @@ namespace util HTTPServer::HTTPServer (int port): m_Thread (nullptr), m_Work (m_Service), - m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint (boost::asio::ip::tcp::v4(), port)), + m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint (boost::asio::ip::address::from_string("127.0.0.1"), port)), m_NewSocket (nullptr) {