adjust_pasv_address Property
Enables or disables automatic adjustment of passive-mode addresses.
Syntax
def get_adjust_pasv_address() -> bool: ... def set_adjust_pasv_address(value: bool) -> None: ...
adjust_pasv_address = property(get_adjust_pasv_address, set_adjust_pasv_address)
Default Value
TRUE
Remarks
Occasional NAT'ed servers misbehave by returning local IP addresses in their PASV mode offers, which are not reachable from the outer network. Set this property to true to make the class enforce data connections to the same address as the control connection uses.
Note that sometimes (typically, with multi-faced FTP services aka FTP Clouds) you may need to disable this property to make the transfers work right.