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
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }
} }