Skip to content

Commit e155af6

Browse files
committed
Fix unix socket connection
Closes #491
1 parent 30bd89c commit e155af6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokio-postgres/src/connect_socket.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub(crate) async fn connect_socket(
3030
}
3131
#[cfg(unix)]
3232
Host::Unix(path) => {
33+
let path = path.join(format!(".s.PGSQL.{}", port));
3334
let socket = connect_with_timeout(UnixStream::connect(path), connect_timeout).await?;
3435
Ok(Socket::new_unix(socket))
3536
}

0 commit comments

Comments
 (0)