修订文档,代码;添加交互模式中生成分享链接功能,添加交互输入字符串的验证

This commit is contained in:
hahahrfool
2022-04-06 11:51:14 +08:00
parent d172e09111
commit 19eda8e356
10 changed files with 482 additions and 362 deletions
-1
View File
@@ -36,7 +36,6 @@ func NewClient(host string, insecure bool, use_uTls bool, alpnList []string) *Cl
}
if ce := utils.CanLogInfo("using utls and Chrome fingerprint for"); ce != nil {
//log.Println("using utls and Chrome fingerprint for", host)
ce.Write(zap.String("host", host))
}
} else {
+1
View File
@@ -113,6 +113,7 @@ func GenerateRandomCertKeyFiles(cfn, kfn string) {
}
//如 certFile, keyFile 有一项没给出,则会自动生成随机证书
func GetCertArrayFromFile(certFile, keyFile string) (certArray []tls.Certificate, err error) {
if certFile != "" && keyFile != "" {
cert, err := tls.LoadX509KeyPair(utils.GetFilePath(certFile), utils.GetFilePath(keyFile))