summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/http-proxy/includes/hicn/http-proxy/http_proxy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/http-proxy/includes/hicn/http-proxy/http_proxy.h b/apps/http-proxy/includes/hicn/http-proxy/http_proxy.h
index 6b5b1c3e3..15a468842 100644
--- a/apps/http-proxy/includes/hicn/http-proxy/http_proxy.h
+++ b/apps/http-proxy/includes/hicn/http-proxy/http_proxy.h
@@ -33,7 +33,8 @@ class TcpListener {
TcpListener(asio::io_service& io_service, short port, AcceptCallback callback)
: acceptor_(io_service,
- asio::ip::tcp::endpoint(asio::ip::tcp::v4(), port)),
+ asio::ip::tcp::endpoint(
+ asio::ip::address::from_string("127.0.0.1"), port)),
#if ((ASIO_VERSION / 100 % 1000) < 12)
socket_(io_service),
#endif