Fix reversed IPv4Forwarding check in api.go
This commit is contained in:
parent
ccffa69766
commit
3e491f8698
1 changed files with 1 additions and 1 deletions
2
api.go
2
api.go
|
@ -522,7 +522,7 @@ func postContainersCreate(srv *Server, version float64, w http.ResponseWriter, r
|
|||
out.Warnings = append(out.Warnings, "Your kernel does not support memory swap capabilities. Limitation discarded.")
|
||||
}
|
||||
|
||||
if srv.runtime.capabilities.IPv4Forwarding {
|
||||
if !srv.runtime.capabilities.IPv4Forwarding {
|
||||
log.Println("Warning: IPv4 forwarding is disabled.")
|
||||
out.Warnings = append(out.Warnings, "IPv4 forwarding is disabled.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue