mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-26 00:36:12 +08:00
fix: 解决开启防火墙未添加系统端口的问题 (#586)
This commit is contained in:
parent
3ac467fc53
commit
f092927ab8
1 changed files with 1 additions and 0 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue