From accbfee648ddfe6493cad4a0bfb7298a36812ed0 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Mon, 12 Oct 2026 19:52:14 +0800 Subject: [PATCH] Update luci-base.patch --- .github/diy/patches/luci-base.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/diy/patches/luci-base.patch b/.github/diy/patches/luci-base.patch index 72ba5cdb2..f4e2055a1 100644 --- a/.github/diy/patches/luci-base.patch +++ b/.github/diy/patches/luci-base.patch @@ -45,7 +45,7 @@ cookie_secure = (http.getenv('HTTPS') == 'on') ? '; secure' : ''; - http.header('Set-Cookie', `${cookie_name}=${session.sid}; path=${build_url()}; SameSite=strict; HttpOnly${cookie_secure}`); -+ let cookie_p = uci.get('wizard', 'default', 'cookie_p'); ++ let cookie_p = uci.get('luci', 'main', 'persistent_cookies'); + if (cookie_p == '0') { + http.header('Set-Cookie', `${cookie_name}=${session.sid}; path=${build_url()}; SameSite=strict; HttpOnly${cookie_secure}`); + } else {