From bd0e56f10d34b874a6d115391c4046199e5b330e Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Tue, 10 May 2005 17:48:16 +0000 Subject: * branches/2.0/lib/Smokeping/probes/Curl.pm: + added the 'insecure_ssl' (-k) option from Marc Spitzer --- lib/Smokeping/probes/Curl.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib') diff --git a/lib/Smokeping/probes/Curl.pm b/lib/Smokeping/probes/Curl.pm index e00c749..af5be29 100644 --- a/lib/Smokeping/probes/Curl.pm +++ b/lib/Smokeping/probes/Curl.pm @@ -102,6 +102,16 @@ host to be probed. DOC _example => "http://%host%/", }, + insecure_ssl => { + _doc => < 1, + }, extrare=> { _doc => <{vars}{ssl2}; push (@args, "-2") if defined($ssl2); + my $insecure_ssl = $target->{vars}{insecure_ssl}; + push (@args, '-k') if defined $insecure_ssl; + return(@args); } -- cgit v1.2.3-24-g4f1b