diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-06-05 11:38:43 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-06-05 11:38:43 +0200 |
commit | 37819ae5a3631afc8329d05d73ead9091fc513b3 (patch) | |
tree | 818366d52c844a994699aaf1d797bc4f50460f07 /apps/http-proxy/includes | |
parent | 2dcaaefd65f3b515aeda0848ff4e757cf2c4b82d (diff) |
[HICN-625] Http Proxy: listen only on local connections
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: Ida53353285633787ce96ad8d37507f15e99280b3
Diffstat (limited to 'apps/http-proxy/includes')
-rw-r--r-- | apps/http-proxy/includes/hicn/http-proxy/http_proxy.h | 3 |
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 |