From 27f47eb40e56b70b93de1ed26392283d486fcbe9 Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Fri, 21 Aug 2020 17:27:05 -0700 Subject: [PATCH] bind introspection to localhost --- agent/handlers/introspection_server_setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/handlers/introspection_server_setup.go b/agent/handlers/introspection_server_setup.go index 07f138a2237..bda910f7f1d 100644 --- a/agent/handlers/introspection_server_setup.go +++ b/agent/handlers/introspection_server_setup.go @@ -56,7 +56,7 @@ func introspectionServerSetup(containerInstanceArn *string, taskEngine handlersu loggingServeMux.Handle("/", LoggingHandler{serverMux}) server := &http.Server{ - Addr: ":" + strconv.Itoa(config.AgentIntrospectionPort), + Addr: "127.0.0.1:" + strconv.Itoa(config.AgentIntrospectionPort), Handler: loggingServeMux, ReadTimeout: readTimeout, WriteTimeout: writeTimeout,