a365fb0e9d
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. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
25 lines
464 B
Go
25 lines
464 B
Go
//go:build windows
|
|
|
|
package libnetwork
|
|
|
|
import (
|
|
"github.com/docker/docker/libnetwork/etchosts"
|
|
)
|
|
|
|
// Stub implementations for DNS related functions
|
|
|
|
func (sb *Sandbox) setupResolutionFiles() error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) restorePath() {}
|
|
|
|
func (sb *Sandbox) updateHostsFile(ifaceIP []string) error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) deleteHostsEntries(recs []etchosts.Record) {}
|
|
|
|
func (sb *Sandbox) updateDNS(ipv6Enabled bool) error {
|
|
return nil
|
|
}
|