mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
Added option to disable ping check for mirrors.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user