diff --git a/src/bus/mod.rs b/src/bus/mod.rs index 82c429b..4810fe8 100644 --- a/src/bus/mod.rs +++ b/src/bus/mod.rs @@ -58,9 +58,16 @@ impl Bus { let (listener, auth_mechanism) = match address.transport() { #[cfg(unix)] Transport::Unix(unix) => { + // resolve address specification into address that clients can use let addr = Self::unix_addr(unix)?; - - (Self::unix_stream(addr).await?, AuthMechanism::External) + address = Address::try_from( + format!("unix:path={}", addr.as_pathname().unwrap().display()).as_str(), + )?; + + ( + Self::unix_stream(addr.clone()).await?, + AuthMechanism::External, + ) } Transport::Tcp(tcp) => { #[cfg(not(windows))]