Add password flag

This commit is contained in:
wweir
2018-12-16 23:25:51 +08:00
parent ee47f02cb5
commit 002ac49e65
+2 -1
View File
@@ -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")