1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1563 from aboch/route

Fix bug in needDefaultGW()
This commit is contained in:
Madhu Venugopal 2016-11-19 21:06:13 -08:00 committed by GitHub
commit 38f5d5c634

View file

@ -123,7 +123,7 @@ func (sb *sandbox) needDefaultGW() bool {
return false
}
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
}
}