From f72cfbca248d7b855d016d782273ca2417814609 Mon Sep 17 00:00:00 2001 From: "Marcelo E. Magallon" Date: Thu, 24 Nov 2022 16:59:03 -0600 Subject: [PATCH] Fix: default to listening on localhost, not all interfaces Signed-off-by: Marcelo E. Magallon --- cmd/synthetic-monitoring-agent/main.go | 2 +- scripts/package/config/systemd/synthetic-monitoring-agent.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/synthetic-monitoring-agent/main.go b/cmd/synthetic-monitoring-agent/main.go index de6758a60..1c67102a4 100644 --- a/cmd/synthetic-monitoring-agent/main.go +++ b/cmd/synthetic-monitoring-agent/main.go @@ -39,7 +39,7 @@ func run(args []string, stdout io.Writer) error { reportVersion = flags.Bool("version", false, "report version and exit") grpcApiServerAddr = flags.String("api-server-address", "localhost:4031", "GRPC API server address") grpcInsecure = flags.Bool("api-insecure", false, "Don't use TLS with connections to GRPC API") - httpListenAddr = flags.String("listen-address", ":4050", "listen address") + httpListenAddr = flags.String("listen-address", "localhost:4050", "listen address") apiToken = flags.String("api-token", "", "synthetic monitoring probe authentication token") enableDisconnect = flags.Bool("enable-disconnect", false, "enable HTTP /disconnect endpoint") enablePProf = flags.Bool("enable-pprof", false, "exposes profiling data via HTTP /debug/pprof/ endpoint") diff --git a/scripts/package/config/systemd/synthetic-monitoring-agent.conf b/scripts/package/config/systemd/synthetic-monitoring-agent.conf index 0f100dc5f..17e9b4597 100644 --- a/scripts/package/config/systemd/synthetic-monitoring-agent.conf +++ b/scripts/package/config/systemd/synthetic-monitoring-agent.conf @@ -8,7 +8,7 @@ API_SERVER='synthetic-monitoring-grpc.grafana.net:443' API_INSECURE="false" # listen address for /metrics and /debug/pprof -LISTEN_ADDRESS=":4031" +LISTEN_ADDRESS="127.0.0.1:4031" # verbose logging VERBOSE="false"