mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-29 05:18:55 -05:00
Fixed server exception in web relay when websocket fails to connect, #4172.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user