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 76a51d5 commit 991f2aaCopy full SHA for 991f2aa
client/index.js
@@ -60,10 +60,10 @@ var onSocketMsg = {
60
61
var newConnection = function() {
62
sock = new SockJS(url.format({
63
- protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
+ protocol: (window.location.protocol === "https:" || urlParts.hostname === '0.0.0.0') ? window.location.protocol : urlParts.protocol,
64
auth: urlParts.auth,
65
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
66
- port: (urlParts.port == '0') ? window.location.port : urlParts.port,
+ port: (urlParts.port === '0') ? window.location.port : urlParts.port,
67
pathname: urlParts.path == null || urlParts.path === '/' ? "/sockjs-node" : urlParts.path
68
}));
69
0 commit comments