Server exception fix in IP-KVM mini router.
Ylian Saint-Hilaire committed
Apr 19, 2022 at 20:38 UTC
5ef32633d8494253204d3a10712d99860026ff0e
3 files changed
+19
-7
meshipkvm.js
+2
-4
@@ -1000,10 +1000,8 @@ function CreateMiniRouter(parent, nodeid, targetHost, targetPort) {
1000
delete tcpSockets[tcpSocket];
1001
try { tcpSocket.end(); } catch (ex) { console.log(ex); }
1002
if (tcpSocket.relaySocket) { try { tcpSocket.relaySocket.close(); } catch (ex) { console.log(ex); } }
1003
- if (tcpSocket) {
1004
- delete tcpSocket.relaySocket.tcpSocket;
1005
- delete tcpSocket.relaySocket;
1006
- }
1003
+ try { delete tcpSocket.relaySocket.tcpSocket; } catch (ex) { }
1004
+ try { delete tcpSocket.relaySocket; } catch (ex) { }
1005
}
1006
}
1007
package.json
+16
-2
@@ -36,6 +36,8 @@
36
"sample-config-advanced.json"
37
],
38
"dependencies": {
39
+ "@yetzt/nedb": "^1.8.0",
40
+ "archiver": "^4.0.2",
41
"body-parser": "^1.19.0",
42
"cbor": "~5.2.0",
43
"compression": "^1.7.4",
@@ -43,13 +45,25 @@
45
"express": "^4.17.0",
46
"express-handlebars": "^5.3.5",
47
"express-ws": "^4.0.0",
48
+ "html-minifier": "^4.0.0",
49
+ "image-size": "^1.0.1",
50
"ipcheck": "^0.1.0",
51
+ "jsdom": "^19.0.0",
52
+ "loadavg-windows": "^1.1.1",
53
+ "minify-js": "^0.0.4",
54
"minimist": "^1.2.5",
55
"multiparty": "^4.2.1",
49
- "@yetzt/nedb": "^1.8.0",
56
"node-forge": "^1.0.0",
57
+ "node-rdpjs-2": "^0.3.5",
58
+ "node-windows": "^0.1.4",
59
+ "otplib": "^10.2.3",
60
+ "pg": "^8.7.1",
61
+ "pgtools": "^0.3.2",
62
+ "ssh2": "^1.9.0",
63
+ "web-push": "^3.4.5",
64
"ws": "^5.2.3",
52
- "yauzl": "^2.10.0"
65
+ "yauzl": "^2.10.0",
66
+ "yubikeyotp": "^0.2.0"
67
},
68
"engines": {
69
"node": ">=10.0.0"
translate/translate.json
+1
-1
@@ -74826,4 +74826,4 @@
74826
]
74827
}
74828
]
74829
-}
74829
+}
\ No newline at end of file