support for CURLOPT_FTP_USE_EPRT added

This commit is contained in:
Daniel Stenberg
2003-05-09 07:39:29 +00:00
parent ca04620253
commit 94a157d0b0
3 changed files with 9 additions and 2 deletions

View File

@@ -1080,7 +1080,8 @@ CURLcode ftp_use_port(struct connectdata *conn)
return CURLE_FTP_PORT_FAILED;
}
for (modep = (char **)mode; modep && *modep; modep++) {
for (modep = (char **)(data->set.ftp_use_eprt?&mode[0]:&mode[2]);
modep && *modep; modep++) {
int lprtaf, eprtaf;
int alen=0, plen=0;