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 {