try to format the network info better

This commit is contained in:
Joe Ardent 2025-07-25 10:14:53 -07:00
parent 3e112d1cb6
commit 2617e37911

View file

@ -60,17 +60,20 @@ fn peers(peers: &Peers, frame: &mut Frame, area: Rect) {
}
fn network_info(frame: &mut Frame, area: Rect) {
let udp: Line = format!(" UDP socket:\t\t{:?}", joecalsend::LISTENING_SOCKET_ADDR)
let udp: Line = format!("UDP socket:\t\t\t {:?}", joecalsend::LISTENING_SOCKET_ADDR)
.yellow()
.into();
let multicast: Line = format!(
" Multicast address:\t{:?}:{}",
"Multicast address:\t\t {:?}:{}",
joecalsend::MULTICAST_IP,
joecalsend::DEFAULT_PORT
)
.yellow()
.into();
let http: Line = format!(" HTTP address:\t{:?}", joecalsend::LISTENING_SOCKET_ADDR)
let http: Line = format!(
"HTTP address:\t\t\t {:?}",
joecalsend::LISTENING_SOCKET_ADDR
)
.yellow()
.into();
let items = [