Fix reversed IPv4Forwarding check in api.go

This commit is contained in:
Colin Rice 2013-08-05 18:26:06 -04:00
parent ccffa69766
commit 3e491f8698

2
api.go
View file

@ -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.")
}