Comparing version 7.5.8 to 7.5.9
@@ -687,4 +687,7 @@ /* eslint no-unused-vars: ["error", { "varsIgnorePattern": "^Readable$" }] */ | ||
if (websocket._redirects === 0) { | ||
websocket._originalUnixSocket = isUnixSocket; | ||
websocket._originalSecure = isSecure; | ||
websocket._originalHost = parsedUrl.host; | ||
websocket._originalHostOrSocketPath = isUnixSocket | ||
? opts.socketPath | ||
: parsedUrl.host; | ||
@@ -705,3 +708,9 @@ const headers = options && options.headers; | ||
} else { | ||
const isSameHost = parsedUrl.host === websocket._originalHost; | ||
const isSameHost = isUnixSocket | ||
? websocket._originalUnixSocket | ||
? opts.socketPath === websocket._originalHostOrSocketPath | ||
: false | ||
: websocket._originalUnixSocket | ||
? false | ||
: parsedUrl.host === websocket._originalHostOrSocketPath; | ||
@@ -708,0 +717,0 @@ if (!isSameHost || (websocket._originalSecure && !isSecure)) { |
{ | ||
"name": "ws", | ||
"version": "7.5.8", | ||
"version": "7.5.9", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
122191
3553