lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.08k stars 159 forks source link

FEAT command being issued before being logged in #638

Open githubranduser opened 2 years ago

githubranduser commented 2 years ago

The FEAT command is being issued BEFORE being logging in. On some sites, you can't use the FEAT command until you are authenticated. LFTP won't correctly enter passive mode as a result of this. There appears to be no way to make it do the FEAT command AFTER logging in.

I tried to go around this and just enable passive mode with this setting: set ftp:use-pret true set ftp:passive-mode true

and may various other options and combos to try to get it to work.

---> PASV <--- 500 You need to use a client supporting PRET (PRE Transfer) to use PASV ---- Switching passive mode off

It has no effect on entering passive mode, I can enable this, disable this, the result is always the same.

I have been at it for hours and the only problem appears to be when FEAT is being issued; if I could get it to be issued AFTER I'm authenticated, I'm pretty sure it would work just like other clients.

githubranduser commented 2 years ago

I can see the option in the code itself, in ftpclass.h and ftpclass.cc but's a true false switch within the code and you can't set it externally. I tried to update this myself and compile but I'm running into problems compiling it too.