mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-05 22:39:50 +00:00
change default listen IP of metrics and pprof to 127.0.0.1
This commit is contained in:
parent
96979dcbb3
commit
478102adc5
@ -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 {
|
||||
|
@ -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…
Reference in New Issue
Block a user