Skip to content

Commit

Permalink
default 8080 no_tls
Browse files Browse the repository at this point in the history
  • Loading branch information
arloor authored Dec 24, 2023
1 parent e331639 commit e408cd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type Config struct {
var Instance Config

func init() {
flag.StringVar(&Instance.Addr, "addr", ":443", "监听地址")
flag.BoolVar(&Instance.UseTls, "tls", true, "是否使用tls")
flag.StringVar(&Instance.Addr, "addr", ":8080", "监听地址")
flag.BoolVar(&Instance.UseTls, "tls", false, "是否使用tls")
flag.StringVar(&Instance.Cert, "cert", "cert.pem", "tls证书")
flag.StringVar(&Instance.PrivKey, "key", "privkey.pem", "tls私钥")
flag.StringVar(&Instance.LogPath, "log", "/tmp/proxy.log", "日志文件路径")
Expand Down

0 comments on commit e408cd0

Please sign in to comment.