fix: 解决表单修改 iptables 失败的问题 (#551)

This commit is contained in:
ssongliu 2023-04-09 22:40:12 +08:00 committed by GitHub
parent 0f1107314f
commit e3cf522565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {