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

pull/553/head
ssongliu 2 years ago committed by GitHub
parent 0f1107314f
commit e3cf522565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save