From c3b616c13eb2418391e28f1c0d6a41f67b106629 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 1 Jun 2023 15:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8D=E8=83=BD=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E6=95=8F=E6=84=9F=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/index/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/actions/default/index/index.go b/internal/web/actions/default/index/index.go index 63a5ad58..555cdddf 100644 --- a/internal/web/actions/default/index/index.go +++ b/internal/web/actions/default/index/index.go @@ -235,7 +235,7 @@ func (this *IndexAction) RunPost(params struct { func (this *IndexAction) checkRegion() bool { var ip = this.RequestRemoteIP() var result = iplibrary.LookupIP(ip) - if result != nil && result.IsOk() && result.CountryId() > 0 && lists.ContainsInt64([]int64{10}, result.CountryId()) { + if result != nil && result.IsOk() && result.CountryId() > 0 && lists.ContainsInt64([]int64{9, 10}, result.CountryId()) { return false } return true