diff options
Diffstat (limited to 'pkg/server/peer.go')
-rw-r--r-- | pkg/server/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go index 2f7d6cc2..c125a5ba 100644 --- a/pkg/server/peer.go +++ b/pkg/server/peer.go @@ -206,7 +206,7 @@ func (peer *Peer) negotiatedRFList() []bgp.RouteFamily { peer.fsm.lock.RLock() defer peer.fsm.lock.RUnlock() l := make([]bgp.RouteFamily, 0, len(peer.fsm.rfMap)) - for family, _ := range peer.fsm.rfMap { + for family := range peer.fsm.rfMap { l = append(l, family) } return l |