mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: 修改部分端口报错
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user