From 95ec6c62ef7f24b7b32be156c4ea08e617a303a1 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:09:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(system):=20Fix=20Issue=20Allowing=20Access?= =?UTF-8?q?=20via=20Old=20Secure=20Entry=20After=20Mo=E2=80=A6=20(#7659)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/7658 --- backend/init/router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/init/router/router.go b/backend/init/router/router.go index d7de8d04c..4ef0aee4f 100644 --- a/backend/init/router/router.go +++ b/backend/init/router/router.go @@ -126,8 +126,8 @@ func setWebStatic(rootRouter *gin.RouterGroup) { entrance := authService.GetSecurityEntrance() if entrance != "" { rootRouter.GET("/"+entrance, func(c *gin.Context) { - entrance = authService.GetSecurityEntrance() - if entrance == "" { + currentEntrance := authService.GetSecurityEntrance() + if currentEntrance == "" || currentEntrance != entrance { handleNoRoute(c) return }