summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/peer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/server/peer.go b/pkg/server/peer.go
index a33287b7..6d692881 100644
--- a/pkg/server/peer.go
+++ b/pkg/server/peer.go
@@ -140,7 +140,9 @@ func (peer *peer) TableID() string {
}
func (peer *peer) isIBGPPeer() bool {
- return peer.fsm.pConf.State.PeerAs == peer.fsm.gConf.Config.As
+ peer.fsm.lock.RLock()
+ defer peer.fsm.lock.RUnlock()
+ return peer.fsm.pConf.State.PeerType == config.PEER_TYPE_INTERNAL
}
func (peer *peer) isRouteServerClient() bool {