diff --git a/cmd/go-mitmproxy/config.go b/cmd/go-mitmproxy/config.go index 0f24ac0..f75abb7 100644 --- a/cmd/go-mitmproxy/config.go +++ b/cmd/go-mitmproxy/config.go @@ -12,7 +12,7 @@ func loadConfig() *Config { flag.BoolVar(&config.version, "version", false, "show version") flag.StringVar(&config.addr, "addr", ":9080", "proxy listen addr") flag.StringVar(&config.webAddr, "web_addr", ":9081", "web interface listen addr") - flag.BoolVar(&config.ssl_insecure, "ssl_insecure", false, "not verify upstream server SSL/TLS certificates.") + flag.BoolVar(&config.sslInsecure, "ssl_insecure", false, "not verify upstream server SSL/TLS certificates.") flag.StringVar(&config.dump, "dump", "", "dump filename") flag.IntVar(&config.dumpLevel, "dump_level", 0, "dump level: 0 - header, 1 - header + body") flag.StringVar(&config.mapperDir, "mapper_dir", "", "mapper files dirpath") diff --git a/cmd/go-mitmproxy/main.go b/cmd/go-mitmproxy/main.go index 16efe0c..d698c2d 100644 --- a/cmd/go-mitmproxy/main.go +++ b/cmd/go-mitmproxy/main.go @@ -17,9 +17,9 @@ type Config struct { version bool certPath string - addr string - webAddr string - ssl_insecure bool + addr string + webAddr string + sslInsecure bool dump string // dump filename dumpLevel int // dump level @@ -51,7 +51,7 @@ func main() { Debug: config.debug, Addr: config.addr, StreamLargeBodies: 1024 * 1024 * 5, - SslInsecure: config.ssl_insecure, + SslInsecure: config.sslInsecure, CaRootPath: config.certPath, }