parent
5ba9d7e503
commit
0f85b186cc
14
apprelays.js
14
apprelays.js
|
@ -638,12 +638,14 @@ module.exports.CreateWebRelay = function (parent, db, args, domain) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Tunnel is now in web socket pass-thru mode
|
// Tunnel is now in web socket pass-thru mode
|
||||||
if ((typeof header.connection == 'string') && (header.connection.toLowerCase() == 'upgrade')) {
|
if (header != null) {
|
||||||
// Websocket upgrade succesful
|
if ((typeof header.connection == 'string') && (header.connection.toLowerCase() == 'upgrade')) {
|
||||||
obj.socketParseState = 2;
|
// Websocket upgrade succesful
|
||||||
} else {
|
obj.socketParseState = 2;
|
||||||
// Unable to upgrade to web socket
|
} else {
|
||||||
obj.close();
|
// Unable to upgrade to web socket
|
||||||
|
obj.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue