Skip to main content

hostname_or_unknown

Function hostname_or_unknown 

Source
pub fn hostname_or_unknown() -> String
Expand description

Returns the OS-level hostname via gethostname(3), or "unknown" if the syscall fails or yields an empty value. Identical on CLI and desktop so the relay’s source_key dedup matches across both clients on the same Mac.