mirror of
https://github.com/curl/curl.git
synced 2026-07-30 05:48:03 +03:00
tool: add --unix-socket option
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
970c22f970
commit
c8644d1f63
5 changed files with 11 additions and 0 deletions
|
|
@ -1331,6 +1331,10 @@ static CURLcode operate_do(struct GlobalConfig *global,
|
|||
my_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L);
|
||||
}
|
||||
|
||||
/* new in 7.40.0 */
|
||||
if(config->unix_socket_path)
|
||||
my_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, config->unix_socket_path);
|
||||
|
||||
/* 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