Fixed server exception in web relay when websocket fails to connect, #4172.
This commit is contained in:
parent
b3d72655d5
commit
dd5b1b2bcd
|
@ -638,7 +638,7 @@ 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 (header.connection.toLowerCase() == 'upgrade') {
|
if ((typeof header.connection == 'string') && (header.connection.toLowerCase() == 'upgrade')) {
|
||||||
// Websocket upgrade succesful
|
// Websocket upgrade succesful
|
||||||
obj.socketParseState = 2;
|
obj.socketParseState = 2;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue