mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2026-04-23 01:47:07 +08:00
修订文档,代码;添加交互模式中生成分享链接功能,添加交互输入字符串的验证
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user