From 08c500c43409a521c75269af4bb92fcfd7acf499 Mon Sep 17 00:00:00 2001 From: link Date: Fri, 5 May 2023 10:37:23 +0800 Subject: [PATCH] Add local jwt (#1047) --- route/v1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/v1.go b/route/v1.go index 9811760..fa8a39c 100644 --- a/route/v1.go +++ b/route/v1.go @@ -41,7 +41,7 @@ func InitV1Router() *gin.Engine { r.GET("/v1/recover/:type", v1.GetRecoverStorage) v1Group := r.Group("/v1") - v1Group.Use(jwt.JWT( + v1Group.Use(jwt.ExceptLocalhost( func() (*ecdsa.PublicKey, error) { return external.GetPublicKey(config.CommonInfo.RuntimePath) },