diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-01-07 05:56:34 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2021-01-07 06:04:31 +0100 |
commit | 17663b6a7c505226cfe9ccc0671611075a3dff57 (patch) | |
tree | 45bff7762a01dad8ddcca0826d71bc3083e6137a /proto/rpki/rpki.c | |
parent | 2a8cc7259e236773f1b8423ef63305a5b8bfd652 (diff) |
RPKI: Remove port (and SSH username) from 'Cache server' output line
It was mixed-up if hostname is IPv6 address, and reporting separate
values (like port) on separate lines fits better into key-value style
of 'show protocols all' output. Also, the patch simplifies transport
identification formatting (although it is unused now).
Thanks to Alarig Le Lay for the suggestion.
Diffstat (limited to 'proto/rpki/rpki.c')
-rw-r--r-- | proto/rpki/rpki.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c index 3ee46ae2..799cb877 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", rpki_get_cache_ident(cache)); + cli_msg(-1006, " Cache server: %s", cf->hostname); 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); |