summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/peer.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/peer.go b/server/peer.go
index 95d3839e..cc695859 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -76,15 +76,7 @@ func NewPeer(g config.Global, conf config.Neighbor, loc *table.TableManager) *Pe
}
peer.adjRib = table.NewAdjRib(peer.configuredRFlist())
peer.fsm = NewFSM(&g, &conf)
- if conf.NeighborConfig.PeerAs != g.GlobalConfig.As {
- for _, member := range g.Confederation.ConfederationConfig.MemberAs {
- if member == conf.NeighborConfig.PeerAs {
- peer.isConfederationMember = true
- break
- }
- }
- }
-
+ peer.isConfederationMember = config.IsConfederationMember(&g, &conf)
return peer
}