"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
ftp: allow disabling EPSV mode
Jon Fautley5d3323605080
diff --git a/backend/ftp/ftp.go b/backend/ftp/ftp.goindex 684ade32a..2ece46977 100644--- a/backend/ftp/ftp.go+++ b/backend/ftp/ftp.go@@ -65,6 +65,11 @@ func init() {Help: "Do not verify the TLS certificate of the server",Default: false,Advanced: true,+ }, {+ Name: "disable_epsv",+ Help: "Disable using EPSV even if server advertises support",+ Default: false,+ Advanced: true,},},})@@ -79,6 +84,7 @@ type Options struct {TLS bool `config:"tls"`Concurrency int `config:"concurrency"`SkipVerifyTLSCert bool `config:"no_check_certificate"`+ DisableEPSV bool `config:"disable_epsv"`}// Fs represents a remote FTP server@@ -144,6 +150,9 @@ func (f *Fs) ftpConnection() (*ftp.ServerConn, error) {}ftpConfig = append(ftpConfig, ftp.DialWithTLS(tlsConfig))}+ if f.opt.DisableEPSV {+ ftpConfig = append(ftpConfig, ftp.DialWithDisabledEPSV(true))+ }c, err := ftp.Dial(f.dialAddr, ftpConfig...)if err != nil {fs.Errorf(f, "Error while Dialing %s: %s", f.dialAddr, err)