Compare commits

..
1 Commits
Author SHA1 Message Date
yisier 19a1e31904 log 2024-01-02 22:57:48 +08:00
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -108,6 +108,7 @@ func StartFromFile(path string) {
logs.Info("Loading configuration file %s successfully", path)
SetTlsEnable(cnf.CommonConfig.TlsEnable)
logs.Info("the version of client is %s, the core version of client is %s,tls enable is %t", version.VERSION, version.GetVersion(), GetTlsEnable())
re:
if first || cnf.CommonConfig.AutoReconnection {
if !first {
+1 -1
View File
@@ -229,9 +229,9 @@ func run() {
if *verifyKey == "" {
*verifyKey, _ = env["NPC_SERVER_VKEY"]
}
logs.Info("the version of client is %s, the core version of client is %s,tls enable is %t", version.VERSION, version.GetVersion(), client.GetTlsEnable())
if *verifyKey != "" && *serverAddr != "" && *configPath == "" {
client.SetTlsEnable(*tlsEnable)
logs.Info("the version of client is %s, the core version of client is %s,tls enable is %t", version.VERSION, version.GetVersion(), client.GetTlsEnable())
go func() {
for {
client.NewRPClient(*serverAddr, *verifyKey, *connType, *proxyUrl, nil, *disconnectTime).Start()