From 15775812579e995f40316fe5f1bd59698754ca78 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:42:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BD=91=E7=AB=99=20?= =?UTF-8?q?WAF=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E7=94=9F=E6=88=90=20?= =?UTF-8?q?(#5504)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/website_utils.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/service/website_utils.go b/backend/app/service/website_utils.go index 089c7dbe3..6956d9a89 100644 --- a/backend/app/service/website_utils.go +++ b/backend/app/service/website_utils.go @@ -330,9 +330,7 @@ func createWafConfig(website *model.Website, domains []model.WebsiteDomain) erro for _, domain := range domains { wafWebsite.Domains = append(wafWebsite.Domains, domain.Domain) - if domain.Port != 80 && domain.Port != 443 { - wafWebsite.Host = append(wafWebsite.Host, domain.Domain+":"+strconv.Itoa(domain.Port)) - } + wafWebsite.Host = append(wafWebsite.Host, domain.Domain+":"+strconv.Itoa(domain.Port)) } websitesArray = append(websitesArray, wafWebsite) websitesContent, err := json.Marshal(websitesArray)