From 2f2e64a55c0bc93ee3971454cc7b2a4ed8beb2fd Mon Sep 17 00:00:00 2001 From: kitty99 <10757579-kitty99@users.noreply.gitlab.com> Date: Sat, 29 Jan 2022 08:47:25 +0000 Subject: [PATCH] fixed issue 359 --- libs/dropInEvents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/dropInEvents.js b/libs/dropInEvents.js index 6f782788..f952fd33 100644 --- a/libs/dropInEvents.js +++ b/libs/dropInEvents.js @@ -188,7 +188,7 @@ module.exports = function(s,config,lang,app,io){ createDropInEventsDirectory() if(!config.ftpServerPort)config.ftpServerPort = 21 if(!config.ftpServerUrl)config.ftpServerUrl = `ftp://0.0.0.0:${config.ftpServerPort}` - if(!config.ftpServerPasvUrl)config.ftpServerPasvUrl = config.ftpServerUrl.replace(/.*:\/\//, '').replace(/:.*/, ''), + if(!config.ftpServerPasvUrl)config.ftpServerPasvUrl = config.ftpServerUrl.replace(/.*:\/\//, '').replace(/:.*/, ''); if(!config.ftpServerPasvMinPort)config.ftpServerPasvMinPort = 10050; if(!config.ftpServerPasvMaxPort)config.ftpServerPasvMaxPort = 10100; config.ftpServerUrl = config.ftpServerUrl.replace('{{PORT}}',config.ftpServerPort)