]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pakfire: Change pingtest to use icmp again.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Mar 2010 09:45:47 +0000 (10:45 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 14 Mar 2010 10:34:37 +0000 (11:34 +0100)
src/pakfire/lib/functions.pl

index 8d4a7da7db52b5a47a617fb3819bbaf67453cf18..5aaa5f41fa872220cda201f41ab80bdff5895560 100644 (file)
@@ -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;