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:
parent
f661bd8ee5
commit
d4e1c072e2
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue