diff --git a/lib/websocket.js b/lib/websocket.js index 8685ff73a..60da37d4f 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -806,8 +806,8 @@ function initAsClient(websocket, address, protocols, options) { ? opts.socketPath === websocket._originalHostOrSocketPath : false : websocket._originalIpc - ? false - : parsedUrl.host === websocket._originalHostOrSocketPath; + ? false + : parsedUrl.host === websocket._originalHostOrSocketPath; if (!isSameHost || (websocket._originalSecure && !isSecure)) { //