diff --git a/libs/uploaders/sftp.js b/libs/uploaders/sftp.js index 6ba8eac9..f50a3f2d 100644 --- a/libs/uploaders/sftp.js +++ b/libs/uploaders/sftp.js @@ -16,6 +16,7 @@ module.exports = function(s,config,lang){ if(!s.group[e.ke].sftp && !s.group[e.ke].sftp && userDetails.sftp !== '0' && + userDetails.sftp_save === '1' && userDetails.sftp_host && userDetails.sftp_host !== ''&& userDetails.sftp_port && diff --git a/package.json b/package.json index 28a73f16..0cb8ea5b 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "mp4frag": "^0.2.0", "mysql": "^2.18.1", "node-fetch": "3.0.0-beta.9", - "node-ssh": "^11.1.1", + "node-ssh": "git+https://github.com/steelbrain/node-ssh.git", "node-telegram-bot-api": "^0.52.0", "nodemailer": "^6.4.11", "pam-diff": "github:kevinGodell/pam-diff",