mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 15:06:37 +08:00
fix: 解决表单修改 iptables 失败的问题 (#551)
This commit is contained in:
parent
0f1107314f
commit
e3cf522565
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ func (u *DockerService) UpdateConf(req dto.DaemonJsonConf) error {
|
||||||
if req.IPTables {
|
if req.IPTables {
|
||||||
delete(deamonMap, "iptables")
|
delete(deamonMap, "iptables")
|
||||||
} else {
|
} else {
|
||||||
deamonMap["live-restore"] = false
|
deamonMap["iptables"] = false
|
||||||
}
|
}
|
||||||
if opts, ok := deamonMap["exec-opts"]; ok {
|
if opts, ok := deamonMap["exec-opts"]; ok {
|
||||||
if optsValue, isArray := opts.([]interface{}); isArray {
|
if optsValue, isArray := opts.([]interface{}); isArray {
|
||||||
|
|
Loading…
Add table
Reference in a new issue