From 08f0147d81eaef6d449c51ac0683c50764468fca Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:44:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=98=B2=E7=81=AB?= =?UTF-8?q?=E5=A2=99=E5=81=B6=E5=8F=91=E7=9A=84=E4=BF=AE=E6=94=B9=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E4=BF=A1=E6=81=AF=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#2292)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/firewall.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/service/firewall.go b/backend/app/service/firewall.go index 58067882d..c9f94463c 100644 --- a/backend/app/service/firewall.go +++ b/backend/app/service/firewall.go @@ -267,6 +267,7 @@ func (u *FirewallService) OperatePortRule(req dto.PortRuleOperate, reload bool) _ = u.addPortRecord(req) }(req) } + wg.Wait() return nil } @@ -343,6 +344,7 @@ func (u *FirewallService) OperateAddressRule(req dto.AddrRuleOperate, reload boo _ = u.addAddressRecord(req) }(req) } + wg.Wait() if reload { return client.Reload() }