handle all tls conditions
This commit is contained in:
parent
e657b4d222
commit
47de7c1d4a
|
@ -311,17 +311,14 @@ require('cluster-store').create().then(function (store) {
|
|||
var m;
|
||||
|
||||
function tryTls() {
|
||||
if (!servername || selfname === servername) {
|
||||
if (!servername || selfname === servername || remotes[servername]) {
|
||||
console.log('this is a server or an unknown');
|
||||
connectHttps(servername, browser);
|
||||
return;
|
||||
}
|
||||
|
||||
if (remotes[servername]) {
|
||||
console.log("pipeWs(servername, service, socket, remotes['" + servername + "'])");
|
||||
pipeWs(servername, service, browser, remotes[servername]);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// https://github.com/mscdex/httpolyglot/issues/3#issuecomment-173680155
|
||||
|
|
Loading…
Reference in New Issue