mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Delete the entries that were added, rather than looking at the service map (DNS config) and trying to delete entries without accounting for the container's --hostname. Signed-off-by: Rob Murray <rob.murray@docker.com>
29 lines
533 B
Go
29 lines
533 B
Go
//go:build windows
|
|
|
|
package libnetwork
|
|
|
|
import (
|
|
"context"
|
|
"net/netip"
|
|
)
|
|
|
|
// Stub implementations for DNS related functions
|
|
|
|
func (sb *Sandbox) setupResolutionFiles(_ context.Context) error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) restoreHostsPath() {}
|
|
|
|
func (sb *Sandbox) restoreResolvConfPath() {}
|
|
|
|
func (sb *Sandbox) addHostsEntries(_ context.Context, ifaceIP []netip.Addr) error {
|
|
return nil
|
|
}
|
|
|
|
func (sb *Sandbox) deleteHostsEntries(ifaceAddrs []netip.Addr) {}
|
|
|
|
func (sb *Sandbox) updateDNS(ipv6Enabled bool) error {
|
|
return nil
|
|
}
|