mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
--disable-eprt added
This commit is contained in:
parent
94a157d0b0
commit
7b0f35edb6
12
src/main.c
12
src/main.c
@ -345,7 +345,8 @@ static void help(void)
|
|||||||
" -C/--continue-at <offset> Specify absolute resume offset\n"
|
" -C/--continue-at <offset> Specify absolute resume offset\n"
|
||||||
" -d/--data <data> HTTP POST data (H)\n"
|
" -d/--data <data> HTTP POST data (H)\n"
|
||||||
" --data-ascii <data> HTTP POST ASCII data (H)\n"
|
" --data-ascii <data> HTTP POST ASCII data (H)\n"
|
||||||
" --data-binary <data> HTTP POST binary data (H)\n"
|
" --data-binary <data> HTTP POST binary data (H)");
|
||||||
|
puts(" --disable-eprt Prevents curl from using EPRT or LPRT (F)\n"
|
||||||
" --disable-epsv Prevents curl from using EPSV (F)\n"
|
" --disable-epsv Prevents curl from using EPSV (F)\n"
|
||||||
" -D/--dump-header <file> Write the headers to this file\n"
|
" -D/--dump-header <file> Write the headers to this file\n"
|
||||||
" --egd-file <file> EGD socket path for random data (SSL)\n"
|
" --egd-file <file> EGD socket path for random data (SSL)\n"
|
||||||
@ -445,6 +446,7 @@ struct Configurable {
|
|||||||
bool use_resume;
|
bool use_resume;
|
||||||
bool resume_from_current;
|
bool resume_from_current;
|
||||||
bool disable_epsv;
|
bool disable_epsv;
|
||||||
|
bool disable_eprt;
|
||||||
int resume_from;
|
int resume_from;
|
||||||
char *postfields;
|
char *postfields;
|
||||||
long postfieldsize;
|
long postfieldsize;
|
||||||
@ -1213,6 +1215,9 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||||||
case 'e': /* --disable-epsv */
|
case 'e': /* --disable-epsv */
|
||||||
config->disable_epsv ^= TRUE;
|
config->disable_epsv ^= TRUE;
|
||||||
break;
|
break;
|
||||||
|
case 'f': /* --disable-eprt */
|
||||||
|
config->disable_eprt ^= TRUE;
|
||||||
|
break;
|
||||||
#ifdef USE_ENVIRONMENT
|
#ifdef USE_ENVIRONMENT
|
||||||
case 'f':
|
case 'f':
|
||||||
config->writeenv ^= TRUE;
|
config->writeenv ^= TRUE;
|
||||||
@ -2932,6 +2937,11 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
/* disable it */
|
/* disable it */
|
||||||
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, FALSE);
|
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, FALSE);
|
||||||
|
|
||||||
|
/* new in libcurl 7.10.5 */
|
||||||
|
if(config->disable_eprt)
|
||||||
|
/* disable it */
|
||||||
|
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, FALSE);
|
||||||
|
|
||||||
/* new in curl 7.9.7 */
|
/* new in curl 7.9.7 */
|
||||||
if(config->trace_dump) {
|
if(config->trace_dump) {
|
||||||
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
|
curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
|
||||||
|
Loading…
Reference in New Issue
Block a user