Skip to content

Commit 7bfc432

Browse files
committed
Add the ability to configure the ignorePassiveAddress option of the FTP adapter
1 parent 3aa87cb commit 7bfc432

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/3-interacting-with-ftp-and-sftp-servers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ flysystem:
2828
passive: true
2929
ssl: true
3030
timeout: 30
31+
ignorePassiveAddress: ~
3132
```
3233
3334
## SFTP

docs/B-configuration-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ flysystem:
4343
passive: true
4444
ssl: true
4545
timeout: 30
46+
ignorePassiveAddress: ~
4647

4748
users7.storage:
4849
adapter: 'gcloud'

src/Adapter/Builder/FtpAdapterDefinitionBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ protected function configureOptions(OptionsResolver $resolver)
5757

5858
$resolver->setDefault('timeout', 90);
5959
$resolver->setAllowedTypes('timeout', 'scalar');
60+
61+
$resolver->setDefault('ignorePassiveAddress', null);
62+
$resolver->setAllowedTypes('ignorePassiveAddress', ['null', 'bool']);
6063
}
6164

6265
protected function configureDefinition(Definition $definition, array $options)

tests/Adapter/options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ fs_ftp:
3535
passive: true
3636
ssl: true
3737
timeout: 30
38+
ignorePassiveAddress: true
3839

3940
fs_gcloud:
4041
adapter: 'gcloud'

0 commit comments

Comments
 (0)