From 37819ae5a3631afc8329d05d73ead9091fc513b3 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 5 Jun 2020 11:38:43 +0200 Subject: [HICN-625] Http Proxy: listen only on local connections Signed-off-by: Mauro Sardara Change-Id: Ida53353285633787ce96ad8d37507f15e99280b3 --- apps/http-proxy/includes/hicn/http-proxy/http_proxy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit 1.2.3-korg