From 19a1e319048a7ea7b96b663303edfea44130d5b2 Mon Sep 17 00:00:00 2001 From: yisier <1340976576@qq.com> Date: Tue, 2 Jan 2024 22:57:48 +0800 Subject: [PATCH] log --- client/control.go | 1 + cmd/npc/npc.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/control.go b/client/control.go index 56338a47..48919779 100644 --- a/client/control.go +++ b/client/control.go @@ -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 { diff --git a/cmd/npc/npc.go b/cmd/npc/npc.go index 423e5982..a8b96cd8 100644 --- a/cmd/npc/npc.go +++ b/cmd/npc/npc.go @@ -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()