mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
fix: 解决表单修改 iptables 失败的问题 (#551)
This commit is contained in:
parent
0f1107314f
commit
e3cf522565
@ -138,7 +138,7 @@ func (u *DockerService) UpdateConf(req dto.DaemonJsonConf) error {
|
||||
if req.IPTables {
|
||||
delete(deamonMap, "iptables")
|
||||
} else {
|
||||
deamonMap["live-restore"] = false
|
||||
deamonMap["iptables"] = false
|
||||
}
|
||||
if opts, ok := deamonMap["exec-opts"]; ok {
|
||||
if optsValue, isArray := opts.([]interface{}); isArray {
|
||||
|
Loading…
Reference in New Issue
Block a user