mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix bug in needDefaultGW()
Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
parent
a57efbd6c2
commit
1770ced6c0
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ func (sb *sandbox) needDefaultGW() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
for _, r := range ep.StaticRoutes() {
|
for _, r := range ep.StaticRoutes() {
|
||||||
if r.Destination.String() == "0.0.0.0/0" {
|
if r.Destination != nil && r.Destination.String() == "0.0.0.0/0" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue