forked from QuorumDMS/ftp-srv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Migration Guide - v2 to v3 | ||
|
||
The `FtpServer` constructor has been changed to only take one object option. Combining the two just made sense. | ||
|
||
### From: | ||
|
||
```js | ||
const server = new FtpServer('ftp://0.0.0.0:21'); | ||
``` | ||
|
||
### To: | ||
|
||
```js | ||
const server = new FtpServer({ | ||
url: 'ftp://0.0.0.0:21' | ||
}); | ||
``` | ||
|
||
---- | ||
|
||
The `pasv_range` option has been changed to separate integer variables: `pasv_min`, `pasv_max`. | ||
|
||
### From: | ||
|
||
```js | ||
const server = new FtpServer(..., { | ||
pasv_range: '1000-2000' | ||
}); | ||
``` | ||
|
||
### To: | ||
|
||
```js | ||
const server = new FtpServer({ | ||
pasv_min: 1000, | ||
pasv_max: 2000 | ||
}) | ||
``` | ||
|
||
---- | ||
|
||
The default passive port range has been changed to `1024` - `65535` | ||
|
||
---- |