95abde479a
osl.NewSandbox() always returns a nil interface on Windows (and other non-Linux platforms). This means that any code that these fields are always nil, and any code using these fields must be considered Linux-only; - libnetwork/Controller.defOsSbox - libnetwork/Sandbox.osSbox Ideally, these fields would live in Linux-only files, but they're referenced in various platform-neutral parts of the code, so let's start with moving the initialization code to Linux-only files. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
12 lines
240 B
Go
12 lines
240 B
Go
//go:build !linux
|
|
|
|
package libnetwork
|
|
|
|
// enabledIptablesVersions is a no-op on non-Linux systems.
|
|
func (c *Controller) enabledIptablesVersions() []any {
|
|
return nil
|
|
}
|
|
|
|
func (c *Controller) setupOSLSandbox(_ *Sandbox) error {
|
|
return nil
|
|
}
|