2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix: 修改部分端口报错

This commit is contained in:
耗子
2024-10-17 17:54:33 +08:00
parent 1a9fe40b80
commit f2c3569447
7 changed files with 64 additions and 36 deletions

View File

@@ -80,7 +80,8 @@ func (s *Service) UpdatePort(w http.ResponseWriter, r *http.Request) {
err = fw.Port(firewall.FireInfo{
PortStart: req.Port,
PortEnd: req.Port,
Protocol: "tcp",
Direction: firewall.DirectionIn,
Strategy: firewall.StrategyAccept,
}, firewall.OperationAdd)
if err != nil {
service.Error(w, http.StatusInternalServerError, "%v", err)