check_curl: use CURLOPT_RESOLVE to fix connecting to the right ip
commit84fd9ae893b53c7dfde78845817d4e1c87b7fed5
authorSven Nierlein <sven@nierlein.de>
Mon, 18 May 2020 11:43:17 +0000 (18 13:43 +0200)
committerSven Nierlein <sven@nierlein.de>
Mon, 18 May 2020 11:43:17 +0000 (18 13:43 +0200)
treed40bd5f03c0cf21be2ff3d5031b434021ac74480
parent8a64e47083674a83f6825d6438f96ec21e6f3168
check_curl: use CURLOPT_RESOLVE to fix connecting to the right ip

when using ssl, the composed url contains the hostname instead of the specified
ip. So use CURLOPT_RESOLVE to make curl still connect to the ip.
plugins/check_curl.c