From e12480cc3c3898a81aadd47aecdfbc258ad9b40d Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Thu, 13 May 2021 04:22:23 +0800 Subject: [PATCH] add version log --- cmd/mitmproxy/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/mitmproxy/main.go b/cmd/mitmproxy/main.go index eba9b76..764dae3 100644 --- a/cmd/mitmproxy/main.go +++ b/cmd/mitmproxy/main.go @@ -10,6 +10,8 @@ import ( log "github.com/sirupsen/logrus" ) +const version = "0.0.1" + type Config struct { addr string webAddr string @@ -37,6 +39,8 @@ func main() { FullTimestamp: true, }) + log.Infof("go-mitmproxy version %v\n", version) + config := loadConfig() opts := &proxy.Options{