Johannes Zellner 9 vuotta sitten
vanhempi
commit
5b186e93aa
2 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa
  1. 8 8
      CloudronManifest.json
  2. 2 2
      ftp.js

+ 8 - 8
CloudronManifest.json

@@ -24,23 +24,23 @@
       "description": "FTP control Port",
       "defaultValue": 29600
     },
-    "FTP_PORT_PASSV_0": {
-      "title": "FTP PASSV Port 0",
+    "FTP_PORT_PASV_0": {
+      "title": "FTP PASV Port 0",
       "description": "FTP data port 0. Ports have to be consecutive numbers.",
       "defaultValue": 29601
     },
-    "FTP_PORT_PASSV_1": {
-      "title": "FTP PASSV Port 1",
+    "FTP_PORT_PASV_1": {
+      "title": "FTP PASV Port 1",
       "description": "FTP data port 1. Ports have to be consecutive numbers.",
       "defaultValue": 29602
     },
-    "FTP_PORT_PASSV_2": {
-      "title": "FTP PASSV Port 2",
+    "FTP_PORT_PASV_2": {
+      "title": "FTP PASV Port 2",
       "description": "FTP data port 2. Ports have to be consecutive numbers.",
       "defaultValue": 29603
     },
-    "FTP_PORT_PASSV_3": {
-      "title": "FTP PASSV Port 3",
+    "FTP_PORT_PASV_3": {
+      "title": "FTP PASV Port 3",
       "description": "FTP data port 3. Ports have to be consecutive numbers.",
       "defaultValue": 29604
     }

+ 2 - 2
ftp.js

@@ -40,8 +40,8 @@ server = new ftpd.FtpServer(options.host, {
     getRoot: function() {
       return '/app/data/public';
     },
-    pasvPortRangeStart: process.env.FTP_PORT_PASSV_0 || 7003,
-    pasvPortRangeEnd: process.env.FTP_PORT_PASSV_3 || 7006,
+    pasvPortRangeStart: process.env.FTP_PORT_PASV_0 || 7003,
+    pasvPortRangeEnd: process.env.FTP_PORT_PASV_3 || 7006,
     tlsOptions: options.tls,
     allowUnauthorizedTls: true,
     useWriteFile: false,