mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:13:31 +03:00
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
This commit is contained in:
parent
9dc3eaee29
commit
186546f1c5
12 changed files with 155 additions and 20 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue