Fixed server exception when remembering SFTP credentials, #4080
Ylian Saint-Hilaire committed
Jun 6, 2022 at 08:06 UTC
a3dc3d7b5dcf2799c08759cc6f01c5433ba02c36
1 file changed
+1
-1
apprelays.js
+1
-1
@@ -1153,7 +1153,7 @@ module.exports.CreateSshFilesRelay = function (parent, db, ws, req, domain, user
1153
parent.parent.db.Get(obj.nodeid, function (err, nodes) {
1154
if ((err != null) || (nodes == null) || (nodes.length != 1)) return;
1155
const node = nodes[0];
1156
- if (node.rdp == null) { node.rdp = {}; }
1156
+ if (node.ssh == null) { node.ssh = {}; }
1157
1158
// Check if credentials are the same
1159
//if ((typeof node.ssh[obj.userid] == 'object') && (node.ssh[obj.userid].u == obj.username) && (node.ssh[obj.userid].p == obj.password)) return; // TODO