Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesycod committed Feb 18, 2025
1 parent 7fce074 commit 2a7ebc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/cli_extensions/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ impl LuaUserData for BindAddr {
BindAddr::Tcp { .. } => Ok("tcp".to_string()),
});

#[cfg(unix)]
fields.add_field_method_get("path", |_lua, this| match this {
#[cfg(unix)]
BindAddr::Unix { path } => Ok(path.to_string_lossy().to_string()),
_ => Err(LuaError::external("Not a Unix socket")),
});
Expand Down

0 comments on commit 2a7ebc9

Please sign in to comment.