api: allow custom unix bind mode and use 0o220 for admin server

This commit is contained in:
networkException
2023-10-03 17:31:40 +02:00
parent 8ec6a53b35
commit 7907a09acc
4 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ impl K2VApiServer {
shutdown_signal: impl Future<Output = ()>,
) -> Result<(), GarageError> {
ApiServer::new(s3_region, K2VApiServer { garage })
.run_server(bind_addr, shutdown_signal)
.run_server(bind_addr, None, shutdown_signal)
.await
}
}