From f50bc16b61f804546e552bfbca5d82a3d7bc81c3 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 14 Jul 2024 19:33:02 +0200 Subject: [PATCH] v1.8.5 --- .github/workflows/release.yml | 2 +- config/version | 2 +- web/session/session.go | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d168a4f246..b0f0f9e12d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,7 +84,7 @@ jobs: cd x-ui/bin # Download dependencies - Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.15/" + Xray_URL="https://github.com/XTLS/Xray-core/releases/download/v1.8.17/" if [ "${{ matrix.platform }}" == "amd64" ]; then wget ${Xray_URL}Xray-linux-64.zip unzip Xray-linux-64.zip diff --git a/config/version b/config/version index 7b378be306..ff2fd4fbef 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -1.8.4 \ No newline at end of file +1.8.5 \ No newline at end of file diff --git a/web/session/session.go b/web/session/session.go index 10cd5883a6..36805bde8b 100644 --- a/web/session/session.go +++ b/web/session/session.go @@ -20,6 +20,7 @@ func init() { func SetLoginUser(c *gin.Context, user *model.User) error { s := sessions.Default(c) s.Options(sessions.Options{ + Path: "/", HttpOnly: true, }) s.Set(loginUser, user)