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

pull/553/head
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
1 changed files with 1 additions and 1 deletions

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 {