mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 23:47:39 +08:00
fix: 解决防火墙偶发的修改备注信息失败的问题 (#2292)
This commit is contained in:
parent
3bcb5800a2
commit
08f0147d81
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,7 @@ func (u *FirewallService) OperatePortRule(req dto.PortRuleOperate, reload bool)
|
||||||
_ = u.addPortRecord(req)
|
_ = u.addPortRecord(req)
|
||||||
}(req)
|
}(req)
|
||||||
}
|
}
|
||||||
|
wg.Wait()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -343,6 +344,7 @@ func (u *FirewallService) OperateAddressRule(req dto.AddrRuleOperate, reload boo
|
||||||
_ = u.addAddressRecord(req)
|
_ = u.addAddressRecord(req)
|
||||||
}(req)
|
}(req)
|
||||||
}
|
}
|
||||||
|
wg.Wait()
|
||||||
if reload {
|
if reload {
|
||||||
return client.Reload()
|
return client.Reload()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue