From 002ac49e65f5ca4f63104ae0251508454af0685e Mon Sep 17 00:00:00 2001 From: wweir Date: Sun, 16 Dec 2018 23:25:51 +0800 Subject: [PATCH] Add password flag --- conf/conf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/conf.go b/conf/conf.go index b4b777f..1ca0f97 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -34,7 +34,8 @@ var Conf = struct { func init() { flag.StringVar(&Conf.ConfigFile, "f", "", "config file location") - flag.StringVar(&Conf.NetType, "n", "QUIC", "proxy net type (QUIC)") + flag.StringVar(&Conf.NetType, "n", "QUIC", "proxy net type (QUIC|KCP)") + flag.StringVar(&Conf.Password, "p", "12345678", "password") flag.StringVar(&Conf.ServerPort, "P", "5533", "server mode listen port") flag.StringVar(&Conf.ServerAddr, "s", "", "server IP (run in client mode if set)") flag.StringVar(&Conf.DnsServer, "d", "114.114.114.114", "client dns server")