Skip to content

Commit 9ec6aa2

Browse files
Listen only on loopback IP at http port
1 parent 8c38a49 commit 9ec6aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/machine-api-operator/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func startMetricsCollectionAndServer(ctx *ControllerContext) {
145145
metricsPort = v
146146
}
147147
glog.V(4).Info("Starting server to serve prometheus metrics")
148-
go startHTTPMetricServer(fmt.Sprintf(":%d", metricsPort))
148+
go startHTTPMetricServer(fmt.Sprintf("localhost:%d", metricsPort))
149149
}
150150

151151
func startHTTPMetricServer(metricsPort string) {

0 commit comments

Comments
 (0)