summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index 84b7268f..892395be 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -120,6 +120,10 @@ func NewPeer(g *config.Global, conf *config.Neighbor, loc *table.TableManager, p
return peer
}
+func (peer *Peer) AS() uint32 {
+ return peer.fsm.pConf.State.PeerAs
+}
+
func (peer *Peer) ID() string {
return peer.fsm.pConf.State.NeighborAddress
}