change sslInsecure option

addon-dailer
lqqyt2423 2 years ago
parent 62ce93db7d
commit 29dd649d8e

@ -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")

@ -19,7 +19,7 @@ type Config struct {
addr string
webAddr string
ssl_insecure bool
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,
}

Loading…
Cancel
Save