From 186546f1c5ffa62526bd57deb5b9fd6e68da2a5e Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 24 Aug 2015 00:15:01 -0400 Subject: TFTP: add option to suppress TFTP option requests (Part 2) - Add tests. - Add an example to CURLOPT_TFTP_NO_OPTIONS.3. - Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS. Bug: https://github.com/curl/curl/issues/481 --- src/tool_operate.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tool_operate.c') diff --git a/src/tool_operate.c b/src/tool_operate.c index 69d60769d..29e0df8c2 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1354,6 +1354,10 @@ static CURLcode operate_do(struct GlobalConfig *global, my_setopt_str(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, (long)(config->expect100timeout*1000)); + /* new in 7.48.0 */ + if(config->tftp_no_options) + my_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 1L); + /* initialize retry vars for loop below */ retry_sleep_default = (config->retry_delay) ? config->retry_delay*1000L : RETRY_SLEEP_DEFAULT; /* ms */ -- cgit v1.2.3