Browse Source

change default listen IP of metrics and pprof to 127.0.0.1

pull/509/head
aler9 4 years ago committed by Alessandro Ros
parent
commit
478102adc5
  1. 4
      internal/conf/conf.go
  2. 4
      rtsp-simple-server.yml

4
internal/conf/conf.go

@ -216,11 +216,11 @@ func (conf *Conf) CheckAndFillMissing() error { @@ -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 {

4
rtsp-simple-server.yml

@ -26,12 +26,12 @@ apiAddress: 127.0.0.1:9997 @@ -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.

Loading…
Cancel
Save