From 58bff63736bb058df44064bff3cb443e2675befb Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 3 May 2016 16:38:14 +0900 Subject: fix 332766189685028c4f9852e4285fb1a9025223cc regression We can't send a path to a peer if the peer isn't configured for its family. Signed-off-by: FUJITA Tomonori --- server/peer.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/peer.go') diff --git a/server/peer.go b/server/peer.go index d191e734..8d517dee 100644 --- a/server/peer.go +++ b/server/peer.go @@ -171,7 +171,9 @@ func (peer *Peer) processOutgoingPaths(paths, withdrawals []*table.Path) []*tabl outgoing := make([]*table.Path, 0, len(paths)) for _, path := range withdrawals { if path.IsLocal() { - outgoing = append(outgoing, path) + if _, ok := peer.fsm.rfMap[path.GetRouteFamily()]; ok { + outgoing = append(outgoing, path) + } } } -- cgit v1.2.3