Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhjaxt authored May 29, 2022
1 parent 83b2640 commit 6ce8abd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ async fn main() -> std::io::Result<()> {
#[cfg(unix)]
{
let unix_path = server_addr[5..].to_string();
let srv = server.bind_uds(unix_path)?;
fs::set_permissions(unix_path, fs::Permissions::from_mode(0o655)).unwrap();
let srv = server.bind_uds(unix_path.clone())?;
fs::set_permissions(unix_path, fs::Permissions::from_mode(0o777)).unwrap();
return srv.run().await;
}
#[cfg(not(unix))]
Expand Down

0 comments on commit 6ce8abd

Please sign in to comment.