parent
8b747c1c40
commit
7e6090274a
|
@ -229,6 +229,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
match std::env::var("SOCKPATH") {
|
||||
Ok(sockpath) => {
|
||||
let _ = std::fs::remove_file(&sockpath);
|
||||
let uds = UnixListener::bind(&sockpath)?;
|
||||
axum::Server::builder(ServerAccept { uds })
|
||||
.serve(app.into_make_service_with_connect_info::<UdsConnectInfo, _>())
|
||||
|
|
Loading…
Reference in New Issue