diff options
author | 2023-01-12 13:28:10 -0800 | |
---|---|---|
committer | 2023-01-12 13:28:10 -0800 | |
commit | 29b4c84b8c02fc41a986808634539f3346faca69 (patch) | |
tree | 6c7fc08dab4f0bbc54fd850902c934f46a741f74 | |
parent | 38f9bb96df7c0a253f5e26ad81c88a0a1179a0d3 (diff) | |
download | bun-29b4c84b8c02fc41a986808634539f3346faca69.tar.gz bun-29b4c84b8c02fc41a986808634539f3346faca69.tar.zst bun-29b4c84b8c02fc41a986808634539f3346faca69.zip |
woops
-rw-r--r-- | src/bun.js/api/bun/socket.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/api/bun/socket.zig b/src/bun.js/api/bun/socket.zig index 1984daca8..911dc9e89 100644 --- a/src/bun.js/api/bun/socket.zig +++ b/src/bun.js/api/bun/socket.zig @@ -280,6 +280,10 @@ pub const SocketConfig = struct { exception.* = JSC.toInvalidArguments("Expected \"hostname\" to be a non-empty string", .{}, globalObject).asObjectRef(); return null; } + + if (hostname_or_unix.len > 0) { + break :hostname_or_unix; + } } if (hostname_or_unix.len == 0) { |