podman/libpod/container_freebsd.go

14 lines
230 B
Go

//go:build !remote
package libpod
func networkDisabled(c *Container) (bool, error) {
if c.config.CreateNetNS {
return false, nil
}
if !c.config.PostConfigureNetNS {
return c.state.NetNS != "", nil
}
return false, nil
}