diff --git a/client/main.go b/client/main.go index 5e69c09..cfd23b6 100644 --- a/client/main.go +++ b/client/main.go @@ -425,7 +425,7 @@ func main() { chScavenger := make(chan *smux.Session, 128) go scavenger(chScavenger, config.ScavengeTTL) go snmpLogger(config.SnmpLog, config.SnmpPeriod) - if c.Bool("pprof") { + if config.Pprof { go http.ListenAndServe(":6060", nil) } rr := uint16(0) diff --git a/server/main.go b/server/main.go index b4af706..36108eb 100644 --- a/server/main.go +++ b/server/main.go @@ -373,7 +373,7 @@ func main() { } go snmpLogger(config.SnmpLog, config.SnmpPeriod) - if c.Bool("pprof") { + if config.Pprof { go http.ListenAndServe(":6060", nil) }