try to format the network info better
This commit is contained in:
parent
3e112d1cb6
commit
2617e37911
1 changed files with 8 additions and 5 deletions
|
@ -60,19 +60,22 @@ 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)
|
||||
.yellow()
|
||||
.into();
|
||||
let http: Line = format!(
|
||||
"HTTP address:\t\t\t {:?}",
|
||||
joecalsend::LISTENING_SOCKET_ADDR
|
||||
)
|
||||
.yellow()
|
||||
.into();
|
||||
let items = [
|
||||
ListItem::new(udp),
|
||||
ListItem::new(multicast),
|
||||
|
|
Loading…
Reference in a new issue