change default listen IP of metrics and pprof to 127.0.0.1

This commit is contained in:
aler9 2021-08-07 19:06:38 +02:00 committed by Alessandro Ros
parent 96979dcbb3
commit 478102adc5
2 changed files with 4 additions and 4 deletions

View File

@ -216,11 +216,11 @@ func (conf *Conf) CheckAndFillMissing() error {
}
if conf.MetricsAddress == "" {
conf.MetricsAddress = ":9998"
conf.MetricsAddress = "127.0.0.1:9998"
}
if conf.PPROFAddress == "" {
conf.PPROFAddress = ":9999"
conf.PPROFAddress = "127.0.0.1:9999"
}
if len(conf.Protocols) == 0 {

View File

@ -26,12 +26,12 @@ apiAddress: 127.0.0.1:9997
# enable Prometheus-compatible metrics.
metrics: no
# address of the metrics listener.
metricsAddress: :9998
metricsAddress: 127.0.0.1:9998
# enable pprof-compatible endpoint to monitor performances.
pprof: no
# address of the pprof listener.
pprofAddress: :9999
pprofAddress: 127.0.0.1:9999
# command to run when a client connects to the server.
# this is terminated with SIGINT when a client disconnects from the server.