diff --git a/src/bus/mod.rs b/src/bus/mod.rs index e502be3..9f59084 100644 --- a/src/bus/mod.rs +++ b/src/bus/mod.rs @@ -65,8 +65,14 @@ impl Bus { 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))]