Browse Source

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

pull/553/head
ssongliu 2 years ago committed by GitHub
parent
commit
e3cf522565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/app/service/docker.go

2
backend/app/service/docker.go

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