diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index 39859c3c..4bda6c9d 100644 --- a/server/peer.go +++ b/server/peer.go @@ -195,7 +195,7 @@ func (peer *Peer) handleBGPmessage(m *bgp.BGPMessage) ([]*table.Path, bool, []*b func (peer *Peer) getBests(loc *LocalRib) []*table.Path { pathList := []*table.Path{} for _, rf := range peer.configuredRFlist() { - for _, paths := range loc.rib.GetPathList(rf) { + for _, paths := range loc.rib.GetBestPathList(rf) { pathList = append(pathList, paths) } } |