I add a parameter to my distribution (1.3.2) to do so :
- Code: Select all
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.





