diff options
-rw-r--r-- | gobgp/cmd/mrt.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/cmd/mrt.go b/gobgp/cmd/mrt.go index d9be3d1c..f8a2d568 100644 --- a/gobgp/cmd/mrt.go +++ b/gobgp/cmd/mrt.go @@ -142,7 +142,7 @@ func injectMrt() error { } if mrtOpts.Best { - dst := table.NewDestination(nlri, 0, paths...) + dst := table.NewDestination(nlri, 0, paths[1:]...) best, _, _ := dst.Calculate(paths[0]).GetChanges(table.GLOBAL_RIB_NAME, 0, false) if best == nil { exitWithError(fmt.Errorf("Can't find the best %v", nlri)) |