diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-05-28 17:23:51 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-05-28 17:23:51 +0200 |
commit | 72804714f5a4a15706215c0ea3f0b4a288b3428f (patch) | |
tree | f3f5308e67ce21bd8e1f0362415d3929a0122f9e /lib/Smokeping/probes/EchoPingHttp.pm | |
parent | d13567a129969c4c3ca0548d08a0d34473aca66d (diff) | |
download | smokeping-72804714f5a4a15706215c0ea3f0b4a288b3428f.tar.gz smokeping-72804714f5a4a15706215c0ea3f0b4a288b3428f.tar.xz |
do not test echoping and curl functionality with 127.0.0.1 since there may be someone behind this address
Diffstat (limited to 'lib/Smokeping/probes/EchoPingHttp.pm')
-rw-r--r-- | lib/Smokeping/probes/EchoPingHttp.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Smokeping/probes/EchoPingHttp.pm b/lib/Smokeping/probes/EchoPingHttp.pm index beb7d4b..7107de6 100644 --- a/lib/Smokeping/probes/EchoPingHttp.pm +++ b/lib/Smokeping/probes/EchoPingHttp.pm @@ -88,13 +88,13 @@ sub test_usage { my $self = shift; my $bin = $self->{properties}{binary}; croak("Your echoping binary doesn't support HTTP") - if `$bin -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i; - if (`$bin -a -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) { + if `$bin -h / 0.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i; + if (`$bin -a -h / 0.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) { carp("Note: your echoping binary doesn't support revalidating (-a), disabling it"); $self->{_disabled}{a} = undef; } - if (`$bin -A -h / 127.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) { + if (`$bin -A -h / 0.0.0.1 2>&1` =~ /(invalid option|not compiled|usage)/i) { carp("Note: your echoping binary doesn't support ignoring cache (-A), disabling it"); $self->{_disabled}{A} = undef; } |