mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-27 04:43:35 -04:00
add proxy argument that useing the -x and --proxy argument. add it to the static curl config struct, command usage and help outputs of the cli. parse these argument together with the environment variables like http_proxy before setting the CURLOPT_PROXY in the curl configuration option. this is required, as there is no easy way to ascertain/get what the CURLOPT_PROXY that libcurl will use. by the point it is set by libcurl, we have no control over it anymore, and need it for the other steps in the configuration. if the CURLOPT_PROXY is set, skip the DNS cache population which would set the CURLOPT_RESOLVE. this is currently not perfect however. if a proxy is set with socks4 or socks5 scheme, the host should be resolving the hostname. |
||
|---|---|---|
| .. | ||
| check_curl_helpers.c | ||
| check_curl_helpers.h | ||
| config.h | ||