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 8d4a7da..5aaa5f4 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;