Skip to content

Commit

Permalink
Update pkg/daemon/controller_linux.go
Browse files Browse the repository at this point in the history
Co-authored-by: 张祖建 <[email protected]>
  • Loading branch information
bobz965 and zhangzujian authored Jul 6, 2023
1 parent a1e2b76 commit 41639ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/controller_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func routeDiff(nodeNicRoutes, allRoutes []netlink.Route, cidrs, joinCIDR []strin

found := false
for _, ar := range allRoutes {
if ar.Dst.String() == c {
if ar.Dst != nil && ar.Dst.String() == c {
// route already exist
found = true
break
Expand Down

0 comments on commit 41639ce

Please sign in to comment.