who/pinky: fix systemd local host

Signed-off-by: Alexander Bakanovskii <skotttt228@gmail.com>
This commit is contained in:
Alexander Bakanovskii
2025-09-19 19:01:11 +03:00
parent 68a0369a45
commit 3837dd24a6
@@ -444,8 +444,9 @@ pub fn read_login_records() -> UResult<Vec<SystemdLoginRecord>> {
.unwrap_or_default();
// Determine host (use remote_host if available)
// If host is local (non-remote) we use display,
let host = if remote_host.is_empty() {
String::new()
display.clone()
} else {
remote_host
};