diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:56:26 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-20 09:56:26 +0100 |
commit | 06f7e757cf2bcad9a75f44959570841e18a57092 (patch) | |
tree | fd153d464bb3d9097dc9db3ca47b412c0bc01d5a | |
parent | 84853aa1cbbe428d150d653567b20c606e9d979b (diff) |
Print own addresses for better debugability
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | cli/src/profile.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/src/profile.rs b/cli/src/profile.rs index 7ca324b..d9a8e54 100644 --- a/cli/src/profile.rs +++ b/cli/src/profile.rs @@ -67,6 +67,17 @@ async fn profile_serve(matches: &ArgMatches) -> Result<()> { } } + { + let addrs = profile.client().own_addresses().await?; + if addrs.is_empty() { + log::error!("No own address"); + } else { + for addr in addrs { + log::info!("Own addr: {}", addr); + } + } + } + if let Some(connect_to) = connect_peer { for c in connect_to { log::info!("Connecting to {:?}", c); |