Added option to disable ping check for mirrors.

This commit is contained in:
Christian Schmidt
2009-09-25 17:44:08 +02:00
parent 8c7f7ed444
commit d59b02f177
4 changed files with 14 additions and 1 deletions

View File

@@ -324,7 +324,11 @@ sub selectmirror {
$proto = $templine[0];
$host = $templine[1];
$path = $templine[2];
if (pinghost("$host")) {
if ($pakfiresettings{'HEALTHCHECK'} eq "off") {
logger("PING INFO: Healthcheck is disabled");
$found = 1;
return ($proto, $host, $path);
elsif (pinghost("$host")) {
$found = 1;
return ($proto, $host, $path);
}