mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-11-19 14:36:34 -05:00
Show remote transport status on tunnels
This commit is contained in:
parent
48c7706188
commit
f876ed8dd9
1 changed files with 3 additions and 2 deletions
|
|
@ -556,14 +556,15 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
|
|||
if "bitrate" in ifstat and ifstat["bitrate"] != None:
|
||||
print(f" Rate : {speed_str(ifstat['bitrate'])}, MTU {ifstat['mtu']}")
|
||||
|
||||
if tstats:
|
||||
if tstats and not clients:
|
||||
print(f" Tunnel ID : {RNS.hexrep(ifstat['tunnel_id'], delimit=False) if ifstat['tunnel_id'] else 'None'}")
|
||||
|
||||
if tstats and ifstat["tunnel_id"]:
|
||||
print(f" Rem.Tr.ID : {RNS.prettyhexrep(ifstat['remote_transport_id']) if ifstat['remote_transport_id'] else 'Unknown'}")
|
||||
|
||||
trns_str = ", transport enabled" if ifstat['rem_is_tn'] else ", no transport"
|
||||
impl_str = f"{ifstat['rem_impl']}" if ifstat['rem_impl'] else "Unknown implementation"
|
||||
vers_str = f" {'.'.join([str(v) for v in ifstat['rem_vers']])}" if ifstat['rem_vers'] else ", unknown version"
|
||||
vers_str = f" {'.'.join([str(v) for v in ifstat['rem_vers']])}{trns_str}" if ifstat['rem_vers'] else ", unknown version"
|
||||
print(f" Rem.Vers. : {impl_str}{vers_str}")
|
||||
|
||||
dst_cost_str = f"Dst {RNS.prettycost(ifstat['rem_dst_cost'])}" if ifstat["rem_dst_cost"] != None else "Dst ?"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue