summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/probes
diff options
context:
space:
mode:
authorNiko Tyni <ntyni@iki.fi>2005-11-06 10:52:59 +0100
committerNiko Tyni <ntyni@iki.fi>2005-11-06 10:52:59 +0100
commit714f7e3d167b5dd3a20c508fc083ac8132e10bb5 (patch)
tree61cbcce8d0a8f0768bd78c562fa3b00ffa66c111 /lib/Smokeping/probes
parentb12124181c5cd5f3373c754c2e1795fd2d02fac3 (diff)
downloadsmokeping-714f7e3d167b5dd3a20c508fc083ac8132e10bb5.tar.gz
smokeping-714f7e3d167b5dd3a20c508fc083ac8132e10bb5.tar.xz
* trunk/
lib/Smokeping/probes/Curl.pm, CHANGES: + don't take '0' for 'true' with the 'ssl2' or 'insecure_ssl' options
Diffstat (limited to 'lib/Smokeping/probes')
-rw-r--r--lib/Smokeping/probes/Curl.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Smokeping/probes/Curl.pm b/lib/Smokeping/probes/Curl.pm
index de56758..6e4625a 100644
--- a/lib/Smokeping/probes/Curl.pm
+++ b/lib/Smokeping/probes/Curl.pm
@@ -219,9 +219,9 @@ sub proto_args {
# we take the total time minus the DNS lookup time.
my @args = ("-o", "/dev/null", "-w", "Time: %{time_total} DNS time: %{time_namelookup}\\n");
my $ssl2 = $target->{vars}{ssl2};
- push (@args, "-2") if defined($ssl2);
- my $insecure_ssl = $target->{vars}{insecure_ssl};
- push (@args, '-k') if defined $insecure_ssl;
+ push (@args, "-2") if $ssl2;
+ my $insecure_ssl = $target->{vars}{insecure_ssl};
+ push (@args, '-k') if $insecure_ssl;
return(@args);
}