From e408cd011233eff714e72fd3e72394b3324ee9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B8=AF=E6=AC=A2?= Date: Sun, 24 Dec 2023 15:45:36 +0800 Subject: [PATCH] default 8080 no_tls --- internal/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 858f418..e8b57bf 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -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", "日志文件路径")