From 985c42aa3cfc3cdd6f5e3a4787fc7656a1849092 Mon Sep 17 00:00:00 2001 From: zengl Date: Sat, 14 Dec 2024 09:38:44 +0800 Subject: [PATCH] Security update in go.mod, plus a fix in log output --- ac/httpac.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ac/httpac.go b/ac/httpac.go index 61ceaf5f..5d1c48d7 100644 --- a/ac/httpac.go +++ b/ac/httpac.go @@ -139,7 +139,7 @@ func (ha *HttpAC) initRouter() { refreshGrp.GET("/:token", func(ctx *gin.Context) { var err error token := ctx.Param("token") - log.Info("get refresh request. aspId: %s, query: %v", token, ctx.Request.URL.RawQuery) + log.Info("get refresh request. token: %s, query: %v", token, ctx.Request.URL.RawQuery) if len(token) == 0 { err = common.ErrUrlPathInvalid diff --git a/go.mod b/go.mod index 95caf6ef..7f73bef8 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/pelletier/go-toml/v2 v2.1.1 github.com/spf13/viper v1.18.2 github.com/urfave/cli/v2 v2.27.0 - golang.org/x/crypto v0.17.0 + golang.org/x/crypto v0.31.0 gorm.io/driver/mysql v1.5.2 gorm.io/gorm v1.25.5 )