We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fce074 commit 2a7ebc9Copy full SHA for 2a7ebc9
1 file changed
crates/cli/src/cli_extensions/http_server.rs
@@ -349,8 +349,8 @@ impl LuaUserData for BindAddr {
349
BindAddr::Tcp { .. } => Ok("tcp".to_string()),
350
});
351
352
+ #[cfg(unix)]
353
fields.add_field_method_get("path", |_lua, this| match this {
- #[cfg(unix)]
354
BindAddr::Unix { path } => Ok(path.to_string_lossy().to_string()),
355
_ => Err(LuaError::external("Not a Unix socket")),
356
0 commit comments