Skip to content

Commit

Permalink
Fix bug in needDefaultGW()
Browse files Browse the repository at this point in the history
cherry-pick from: moby/libnetwork#1563

Signed-off-by: Alessandro Boch <[email protected]>
Signed-off-by: Lei Jitang <[email protected]>
  • Loading branch information
coolljt0725 committed Jun 26, 2017
1 parent 41cb90a commit e03232c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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 e03232c

Please sign in to comment.