mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[node:net] Hopefully fix unix sockets
This commit is contained in:
@@ -197,7 +197,10 @@ export const Socket = (function (InternalSocket) {
|
||||
connect(port, host, connectListener) {
|
||||
// TODO support IPC sockets
|
||||
var path;
|
||||
if (typeof host == "function") {
|
||||
if (arguments.length === 1 && typeof port === "string") {
|
||||
path = port;
|
||||
port = undefined;
|
||||
} else if (typeof host == "function") {
|
||||
if (typeof port === "string") {
|
||||
path = port;
|
||||
port = undefined;
|
||||
|
||||
Reference in New Issue
Block a user