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) {
|
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()
|
.yellow()
|
||||||
.into();
|
.into();
|
||||||
let multicast: Line = format!(
|
let multicast: Line = format!(
|
||||||
" Multicast address:\t{:?}:{}",
|
"Multicast address:\t\t {:?}:{}",
|
||||||
joecalsend::MULTICAST_IP,
|
joecalsend::MULTICAST_IP,
|
||||||
joecalsend::DEFAULT_PORT
|
joecalsend::DEFAULT_PORT
|
||||||
)
|
)
|
||||||
.yellow()
|
.yellow()
|
||||||
.into();
|
.into();
|
||||||
let http: Line = format!(" HTTP address:\t{:?}", joecalsend::LISTENING_SOCKET_ADDR)
|
let http: Line = format!(
|
||||||
.yellow()
|
"HTTP address:\t\t\t {:?}",
|
||||||
.into();
|
joecalsend::LISTENING_SOCKET_ADDR
|
||||||
|
)
|
||||||
|
.yellow()
|
||||||
|
.into();
|
||||||
let items = [
|
let items = [
|
||||||
ListItem::new(udp),
|
ListItem::new(udp),
|
||||||
ListItem::new(multicast),
|
ListItem::new(multicast),
|
||||||
|
|
Loading…
Reference in a new issue