Skip to content

Commit 2a7ebc9

Browse files
committed
fix
1 parent 7fce074 commit 2a7ebc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/cli/src/cli_extensions/http_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ impl LuaUserData for BindAddr {
349349
BindAddr::Tcp { .. } => Ok("tcp".to_string()),
350350
});
351351

352+
#[cfg(unix)]
352353
fields.add_field_method_get("path", |_lua, this| match this {
353-
#[cfg(unix)]
354354
BindAddr::Unix { path } => Ok(path.to_string_lossy().to_string()),
355355
_ => Err(LuaError::external("Not a Unix socket")),
356356
});

0 commit comments

Comments
 (0)