mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 08:22:59 +02:00
pakfire: Change pingtest to use icmp again.
This commit is contained in:
committed by
Arne Fitzenreiter
parent
1ddefbbdc8
commit
4a0ce88c9b
@@ -116,7 +116,7 @@ sub usage {
|
||||
sub pinghost {
|
||||
my $host = shift;
|
||||
|
||||
$p = Net::Ping->new();
|
||||
$p = Net::Ping->new("icmp");
|
||||
if ($p->ping($host)) {
|
||||
logger("PING INFO: $host is alive");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user