Skip to content

Commit 3bc67bc

Browse files
committed
use std.net.has_unix_sockets to detect if unix sockets are supported
1 parent c5ace3b commit 3bc67bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/server.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn Server(comptime H: type) type {
147147
var no_delay = true;
148148
const address = blk: {
149149
if (config.unix_path) |unix_path| {
150-
if (comptime builtin.os.tag == .windows) {
150+
if (comptime std.net.has_unix_sockets == false) {
151151
return error.UnixPathNotSupported;
152152
}
153153
no_delay = false;

0 commit comments

Comments
 (0)