diff options
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/peer.go b/server/peer.go index 3ddc823a..aa3405f6 100644 --- a/server/peer.go +++ b/server/peer.go @@ -142,12 +142,10 @@ func (peer *Peer) handleREST(restReq *api.RestRequest) { } func (peer *Peer) handlePeermessage(m *message) { - - sendpath := func(pList []table.Path, wList []table.Destination) { + sendpath := func(pList []table.Path, wList []table.Path) { pathList := append([]table.Path(nil), pList...) - for _, dest := range wList { - p := dest.GetOldBestPath() + for _, p := range wList { pathList = append(pathList, p.Clone(true)) } peer.adjRib.UpdateOut(pathList) |