Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

add a passive port range #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions exampleftpd/exampleftpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func main() {
pass = flag.String("pass", "123456", "Password for login")
port = flag.Int("port", 2121, "Port")
host = flag.String("host", "localhost", "Port")
pasv = flat.String("pasv", "3001-3900", "Passive port range")
)
flag.Parse()
if *root == "" {
Expand All @@ -36,6 +37,7 @@ func main() {
Factory: factory,
Port: *port,
Hostname: *host,
PassivePorts: *pasv,
Auth: &server.SimpleAuth{Name: *user, Password: *pass},
}

Expand Down