1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[curl] Distinguish FTP and SFTP

This commit is contained in:
Witold Filipczyk 2024-05-27 16:39:07 +02:00
parent 17e905b95d
commit c42188c15a

View File

@ -51,6 +51,7 @@
#include "protocol/common.h"
#include "protocol/curl/ftpes.h"
#include "protocol/curl/http.h"
#include "protocol/curl/sftp.h"
#include "protocol/http/http.h"
#include "protocol/http/post.h"
#include "protocol/uri.h"
@ -532,7 +533,14 @@ check_multi_info(GlobalInfo *g)
}
#ifdef CONFIG_FTP
if (conn->uri->protocol == PROTOCOL_FTP || conn->uri->protocol == PROTOCOL_FTPES || conn->uri->protocol == PROTOCOL_SFTP) {
if (conn->uri->protocol == PROTOCOL_FTP || conn->uri->protocol == PROTOCOL_FTPES) {
ftp_curl_handle_error(conn, res);
continue;
}
#endif
#ifdef CONFIG_SFTP
if (conn->uri->protocol == PROTOCOL_SFTP) {
ftp_curl_handle_error(conn, res);
continue;
}