Hello,

Recently I needed to check the address and port for my cache server,
only to find out that the "show protocol all rpki1" output omitted the port.

This small patch appends the port after the cache server address on the
show protocol all output.

Thanks,
Luiz
commit b441e62811e64703f0846693795e09075e26010f
Author: Luiz Amaral <[email protected]>
Date:   Mon May 9 20:06:30 2022 +0200

    RPKI: Display cache server port on show protocol

diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c
index ab0837f3..338877e7 100644
--- a/proto/rpki/rpki.c
+++ b/proto/rpki/rpki.c
@@ -837,7 +837,7 @@ rpki_show_proto_info(struct proto *P)
     case RPKI_TR_TCP: transport_name = "Unprotected over TCP"; break;
     };
 
-    cli_msg(-1006, "  Cache server:     %s", cf->hostname);
+    cli_msg(-1006, "  Cache server:     %s:%u", cf->hostname, cf->port);
     cli_msg(-1006, "  Status:           %s", rpki_cache_state_to_str(cache->state));
     cli_msg(-1006, "  Transport:        %s", transport_name);
     cli_msg(-1006, "  Protocol version: %u", cache->version);

Reply via email to