Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#33 FTPClient:Choose explicitely between EPSV and PASV

closed
nobody
None
5
2012-09-14
2008-02-13
Anonymous
No

Can we choose explicitely between EPSV and PASV ? I add a parameter to my distribution (1.3.2) to do so :

void setPassive(bool flag, bool useExtendedPassiveMode = true); // .h

void FTPClientSession::setPassive(bool flag, bool useExtendedPassiveMode) { // .cpp
_passiveMode = flag;
_supports1738 = useExtendedPassiveMode;
}
Is there another way to do this, or is this code valid and could be integrated in future release ?

ps : I know it is a curious request, but for some (very bad) reasons (not depending on me), I need to force the use of PASV mode instead of EPSV on a server that supports both.

Thanks in advance.

Discussion

  • fixed in 1.3.6