tool: add --unix-socket option

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2014-11-27 23:59:26 +01:00 committed by Daniel Stenberg
parent 970c22f970
commit c8644d1f63
5 changed files with 11 additions and 0 deletions

View file

@ -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 */