Skip to content

Commit

Permalink
delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliiBedletskyi committed Apr 30, 2024
1 parent d0f564c commit 58a939e
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions reverse_engineering/helpers/connectionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58a939e

Please sign in to comment.