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