diff --git a/internal/conf/conf.go b/internal/conf/conf.go index 68627f22..e37b5462 100644 --- a/internal/conf/conf.go +++ b/internal/conf/conf.go @@ -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 { diff --git a/rtsp-simple-server.yml b/rtsp-simple-server.yml index 1783b57c..60c80ed0 100644 --- a/rtsp-simple-server.yml +++ b/rtsp-simple-server.yml @@ -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.