summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index f3f25ddc..ceeca0c5 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -299,6 +299,7 @@ func (peer *Peer) ToApiStruct() *api.Peer {
conf := &api.PeerConf{
NeighborAddress: c.NeighborConfig.NeighborAddress.String(),
+ Id: peer.peerInfo.ID.To4().String(),
PeerAs: c.NeighborConfig.PeerAs,
LocalAs: c.NeighborConfig.LocalAs,
PeerType: uint32(c.NeighborConfig.PeerType),