Server exception fix in IP-KVM mini router.

This commit is contained in:
Ylian Saint-Hilaire 2022-04-19 20:38:42 -07:00
parent 6105366a6d
commit 5ef32633d8
3 changed files with 19 additions and 7 deletions

View File

@ -1000,10 +1000,8 @@ function CreateMiniRouter(parent, nodeid, targetHost, targetPort) {
delete tcpSockets[tcpSocket]; delete tcpSockets[tcpSocket];
try { tcpSocket.end(); } catch (ex) { console.log(ex); } try { tcpSocket.end(); } catch (ex) { console.log(ex); }
if (tcpSocket.relaySocket) { try { tcpSocket.relaySocket.close(); } catch (ex) { console.log(ex); } } if (tcpSocket.relaySocket) { try { tcpSocket.relaySocket.close(); } catch (ex) { console.log(ex); } }
if (tcpSocket) { try { delete tcpSocket.relaySocket.tcpSocket; } catch (ex) { }
delete tcpSocket.relaySocket.tcpSocket; try { delete tcpSocket.relaySocket; } catch (ex) { }
delete tcpSocket.relaySocket;
}
} }
} }

View File

@ -36,6 +36,8 @@
"sample-config-advanced.json" "sample-config-advanced.json"
], ],
"dependencies": { "dependencies": {
"@yetzt/nedb": "^1.8.0",
"archiver": "^4.0.2",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"cbor": "~5.2.0", "cbor": "~5.2.0",
"compression": "^1.7.4", "compression": "^1.7.4",
@ -43,13 +45,25 @@
"express": "^4.17.0", "express": "^4.17.0",
"express-handlebars": "^5.3.5", "express-handlebars": "^5.3.5",
"express-ws": "^4.0.0", "express-ws": "^4.0.0",
"html-minifier": "^4.0.0",
"image-size": "^1.0.1",
"ipcheck": "^0.1.0", "ipcheck": "^0.1.0",
"jsdom": "^19.0.0",
"loadavg-windows": "^1.1.1",
"minify-js": "^0.0.4",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"multiparty": "^4.2.1", "multiparty": "^4.2.1",
"@yetzt/nedb": "^1.8.0",
"node-forge": "^1.0.0", "node-forge": "^1.0.0",
"node-rdpjs-2": "^0.3.5",
"node-windows": "^0.1.4",
"otplib": "^10.2.3",
"pg": "^8.7.1",
"pgtools": "^0.3.2",
"ssh2": "^1.9.0",
"web-push": "^3.4.5",
"ws": "^5.2.3", "ws": "^5.2.3",
"yauzl": "^2.10.0" "yauzl": "^2.10.0",
"yubikeyotp": "^0.2.0"
}, },
"engines": { "engines": {
"node": ">=10.0.0" "node": ">=10.0.0"