summaryrefslogtreecommitdiffhomepage
path: root/server/rpki.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-23 16:04:30 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-12-24 15:38:00 -0800
commit586ec66e970cd4d330b35d65a599ae0e116a324a (patch)
tree515f81a0508867dec484f5ecfc3787ceacd50c03 /server/rpki.go
parentebe493913af9a57c8488119009c6006430001cce (diff)
rpki: 'rpki server' command shows port
Session State Uptime #IPv4/IPv6 records 210.173.170.254:323 Up 00:01:39 17112/2517 141.22.28.222:8282 Up 00:01:39 17411/2604 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/rpki.go')
-rw-r--r--server/rpki.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/rpki.go b/server/rpki.go
index 7fa9aea4..cbe6ad6b 100644
--- a/server/rpki.go
+++ b/server/rpki.go
@@ -267,10 +267,11 @@ func (c *roaManager) handleGRPC(grpcReq *GrpcRequest) {
for _, client := range c.clientMap {
state := client.state
received := &state.RpkiMessages.RpkiReceived
- addr, _ := splitHostPort(client.host)
+ addr, port := splitHostPort(client.host)
rpki := &api.RPKI{
Conf: &api.RPKIConf{
- Address: addr,
+ Address: addr,
+ RemotePort: uint32(port),
},
State: &api.RPKIState{
Uptime: state.Uptime,