From 99e1658fdfd45b655897277c05e28c725418ed39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Fri, 11 Nov 2022 16:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=88=9B=E5=BB=BA=E7=9A=84IP?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E6=9C=89=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/setup/sql_executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/setup/sql_executor.go b/internal/setup/sql_executor.go index f7508619..175d3f41 100644 --- a/internal/setup/sql_executor.go +++ b/internal/setup/sql_executor.go @@ -307,12 +307,12 @@ func (this *SQLExecutor) checkIPList(db *dbs.DB) error { } // 创建名单 - _, err = db.Exec("INSERT INTO edgeIPLists(name, type, code, isPublic, createdAt) VALUES (?, ?, ?, ?, ?)", "公共黑名单", "black", "black", 1, time.Now().Unix()) + _, err = db.Exec("INSERT INTO edgeIPLists(name, type, code, isPublic, isGlobal, createdAt) VALUES (?, ?, ?, ?, ?, ?)", "公共黑名单", "black", "black", 1, 1, time.Now().Unix()) if err != nil { return err } - _, err = db.Exec("INSERT INTO edgeIPLists(name, type, code, isPublic, createdAt) VALUES (?, ?, ?, ?, ?)", "公共白名单", "white", "white", 1, time.Now().Unix()) + _, err = db.Exec("INSERT INTO edgeIPLists(name, type, code, isPublic, isGlobal, createdAt) VALUES (?, ?, ?, ?, ?, ?)", "公共白名单", "white", "white", 1, 1, time.Now().Unix()) if err != nil { return err }