mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-24 08:00:57 +00:00
fix: 解决开启防火墙未添加系统端口的问题 (#586)
This commit is contained in:
@@ -147,6 +147,7 @@ func (u *FirewallService) OperateFirewall(operation string) error {
|
||||
if err := client.Port(fireClient.FireInfo{Port: serverPort.Value, Protocol: "tcp", Strategy: "accept"}, "add"); err != nil {
|
||||
return err
|
||||
}
|
||||
_ = client.Reload()
|
||||
_, _ = cmd.Exec("systemctl restart docker")
|
||||
return nil
|
||||
case "stop":
|
||||
|
||||
Reference in New Issue
Block a user