diff options
author | FujiApple <fujiapple852@gmail.com> | 2024-10-14 18:23:21 +0800 |
---|---|---|
committer | FujiApple <fujiapple852@gmail.com> | 2024-10-14 17:35:47 +0700 |
commit | 83306280a5d476c80889bac1d796603c88742992 (patch) | |
tree | 7d5a62ee9597c8137cb4e2a2785557143b2c6a5e | |
parent | 681c730b0b08f62d86a53be70fb2901d6bc8a65b (diff) |
fix(tui): AS information incorrectly rendered in host details line
-rw-r--r-- | crates/trippy-tui/src/frontend/render/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/trippy-tui/src/frontend/render/table.rs b/crates/trippy-tui/src/frontend/render/table.rs index 791a8ce..2a63c75 100644 --- a/crates/trippy-tui/src/frontend/render/table.rs +++ b/crates/trippy-tui/src/frontend/render/table.rs @@ -631,8 +631,8 @@ fn fmt_details_line( (false, _) => format!( "AS {}: <{}>\nAS {}: <{}>", t!("name"), - t!("info"), t!("not_enabled"), + t!("info"), t!("not_enabled") ), (true, None) => format!( @@ -646,17 +646,17 @@ fn fmt_details_line( format!( "AS {}: <{}>\nAS {}: <{}>", t!("name"), - t!("info"), t!("not_found"), + t!("info"), t!("not_found") ) } (true, Some(info)) => format!( "AS {}: AS{} {}\nAS {}: {} {} {}", t!("name"), - t!("info"), info.asn, info.name, + t!("info"), info.prefix, info.registry, info.allocated |