From 8db2a7361bf649693824450cfcfd498ae51115a0 Mon Sep 17 00:00:00 2001 From: XZB-1248 Date: Wed, 30 Oct 2024 19:50:22 +0800 Subject: [PATCH] update: client config --- client/core/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/core/core.go b/client/core/core.go index 7c67362..099e7f6 100644 --- a/client/core/core.go +++ b/client/core/core.go @@ -112,14 +112,14 @@ func reportWS(wsConn *common.Conn) error { } func checkUpdate(wsConn *common.Conn) error { - if len(config.COMMIT) == 0 { + if len(config.Commit) == 0 { return nil } resp, err := common.HTTP.R(). SetBody(config.ConfigBuffer). SetQueryParam(`os`, runtime.GOOS). SetQueryParam(`arch`, runtime.GOARCH). - SetQueryParam(`commit`, config.COMMIT). + SetQueryParam(`commit`, config.Commit). SetHeader(`Secret`, wsConn.GetSecretHex()). Send(`POST`, config.GetBaseURL(false)+`/api/client/update`) if err != nil {