moby/libnetwork/sandbox_dns_windows.go
Sebastiaan van Stijn a365fb0e9d
libnetwork: move more osl.Sandbox related code to Linux-only files
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>
2023-08-23 20:13:15 +02:00

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
}