We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da1e57 commit 47c1699Copy full SHA for 47c1699
client/index.js
@@ -58,10 +58,10 @@ var onSocketMsg = {
58
59
var newConnection = function() {
60
sock = new SockJS(url.format({
61
- protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
+ protocol: (window.location.protocol === "https:" || urlParts.hostname === '0.0.0.0') ? window.location.protocol : urlParts.protocol,
62
auth: urlParts.auth,
63
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
64
- port: (urlParts.port == '0') ? window.location.port : urlParts.port,
+ port: (urlParts.port === '0') ? window.location.port : urlParts.port,
65
pathname: urlParts.path == null || urlParts.path === '/' ? "/sockjs-node" : urlParts.path
66
}));
67
0 commit comments