Expand description
Which machine a remote pane is connected to, by name and address, for its
stats badge tooltip (blockstats.detail).
- SSH:
ssh -Gsays which host a destination really names (the user’s ssh config applies: an alias’sHostName,Include,Match), and a DNS lookup gives its address. Through aProxyJumpthe address is what this computer resolves the name to, which may be none. - WSL: the distribution’s address on the interface its default route
uses, from
/proc/net/routeand/proc/net/fib_trie, which every distribution has (BusyBox’shostnamehas no-I).
Answers are kept for [TTL], failures too, so a tooltip that asks every
few seconds runs ssh or wsl.exe at most once in that time.
Structs§
- Remote
Address - A remote pane’s machine. Either part is
Nonewhen it couldn’t be found.
Functions§
- of
RemoteAddressfor a remote connection, from the cache when it is fresh;Nonefor a local one.