From 58a939e48d43418d60f099a4a70eead97ef66017 Mon Sep 17 00:00:00 2001 From: Vitalii Bedletskyi Date: Tue, 30 Apr 2024 12:09:01 +0300 Subject: [PATCH] delete commented code --- .../helpers/connectionHelper.js | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/reverse_engineering/helpers/connectionHelper.js b/reverse_engineering/helpers/connectionHelper.js index 7fc5ae6..b182f54 100644 --- a/reverse_engineering/helpers/connectionHelper.js +++ b/reverse_engineering/helpers/connectionHelper.js @@ -4,45 +4,6 @@ const fs = require('fs'); let connection; let useSshTunnel; -// const getSshConfig = (info) => { -// const config = { -// username: info.ssh_user, -// host: info.ssh_host, -// port: info.ssh_port, -// dstHost: info.host, -// dstPort: info.port, -// localHost: '127.0.0.1', -// localPort: info.port, -// keepAlive: true -// }; -// -// if (info.ssh_method === 'privateKey') { -// return Object.assign({}, config, { -// privateKey: fs.readFileSync(info.ssh_key_file), -// passphrase: info.ssh_key_passphrase -// }); -// } else { -// return Object.assign({}, config, { -// password: info.ssh_password -// }); -// } -// }; - -// const connectViaSsh = (info) => new Promise((resolve, reject) => { -// ssh(getSshConfig(info), (err, tunnel) => { -// if (err) { -// reject(err); -// } else { -// resolve({ -// tunnel, -// info: Object.assign({}, info, { -// host: '127.0.0.1', -// }) -// }); -// } -// }); -// }); - const getSslOptions = (connectionInfo) => { if (connectionInfo.sslType === 'Off') { return false;