libnetwork: move resolverIPSandbox closer to where it's used

It's only used on non-Windows platforms, so let's move it there.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-09 20:07:19 +02:00
parent f661bd8ee5
commit d4e1c072e2
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 2 additions and 4 deletions

View file

@ -99,10 +99,6 @@ type containerConfig struct {
exposedPorts []types.TransportPort
}
const (
resolverIPSandbox = "127.0.0.11"
)
// ID returns the ID of the sandbox.
func (sb *Sandbox) ID() string {
return sb.id

View file

@ -23,6 +23,8 @@ const (
defaultPrefix = "/var/lib/docker/network/files"
dirPerm = 0o755
filePerm = 0o644
resolverIPSandbox = "127.0.0.11"
)
func (sb *Sandbox) startResolver(restore bool) {