From b3c4ec948386dd7719901558076cc40bd41bc56c Mon Sep 17 00:00:00 2001 From: xtaci Date: Sun, 12 Mar 2017 21:12:03 +0800 Subject: [PATCH] update --- client/main.go | 2 +- server/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.go b/client/main.go index 5e69c09fa..cfd23b605 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 b4af70626..36108eb90 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) }