Skip to content

Commit

Permalink
Merge pull request #1563 from aboch/route
Browse files Browse the repository at this point in the history
Fix bug in needDefaultGW()
  • Loading branch information
mavenugo authored Nov 20, 2016
2 parents f36e733 + 09a2c50 commit 6b20ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 6b20ec7

Please sign in to comment.