mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
disable Unix Domain Sockets for windows
This commit is contained in:
@@ -116,6 +116,7 @@ pub async fn run(options: Options) -> anyhow::Result<()> {
|
||||
"{} \"{} {} {:?}\" {} {:?} {}",
|
||||
match info.connect_info.0 {
|
||||
DualAddr::Tcp(c) => c.to_string(),
|
||||
#[cfg(unix)]
|
||||
DualAddr::Uds(_) => "unix-socket".into()
|
||||
},
|
||||
info.method,
|
||||
|
||||
@@ -63,6 +63,7 @@ fn parse_options() -> Result<httpd::Options, lexopt::Error> {
|
||||
Long("listen") => {
|
||||
let addr: DualAddr = parser.value()?.parse()?;
|
||||
|
||||
#[cfg(unix)]
|
||||
// Get socket path and remove it if existing
|
||||
if let DualAddr::Uds(socket_path) = &addr {
|
||||
if let Some(path) = socket_path.as_pathname() {
|
||||
|
||||
Reference in New Issue
Block a user