Skip to content

Commit

Permalink
Fix: default to listening on localhost, not all interfaces
Browse files Browse the repository at this point in the history
Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
  • Loading branch information
mem committed Nov 29, 2022
1 parent d8dc7f9 commit f72cfbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/synthetic-monitoring-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f72cfbc

Please sign in to comment.