From f3331d293e23486d418621d6c2246c55f0820e82 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 13 Nov 2022 10:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4=E9=BB=91?= =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95=E4=B8=8D=E6=98=AF=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/setup/sql_upgrade_ext.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/setup/sql_upgrade_ext.go b/internal/setup/sql_upgrade_ext.go index fcb735f1..b770c297 100644 --- a/internal/setup/sql_upgrade_ext.go +++ b/internal/setup/sql_upgrade_ext.go @@ -203,5 +203,13 @@ func upgradeV0_5_8(db *dbs.DB) error { } } + // 修复默认黑白名单不是全局的问题 + { + _, err := db.Exec("UPDATE edgeIPLists SET isGlobal=1 WHERE id IN (1, 2)") + if err != nil { + return err + } + } + return nil }