mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
Merge branch 'fifteen' of ssh://git.ipfire.org/pub/git/ipfire-2.x into fifteen
This commit is contained in:
@@ -305,7 +305,12 @@ sub selectmirror {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger("MIRROR INFO: $scount servers found in list");
|
logger("MIRROR INFO: $scount servers found in list");
|
||||||
|
|
||||||
|
if ($scount eq 0) {
|
||||||
|
logger("MIRROR INFO: Could not find any servers. Falling back to main server $Conf::mainserver");
|
||||||
|
return ("HTTP", $Conf::mainserver, "/$Conf::version");
|
||||||
|
}
|
||||||
|
|
||||||
### Choose a random server and test if it is online
|
### Choose a random server and test if it is online
|
||||||
# If the check fails try a new server.
|
# If the check fails try a new server.
|
||||||
# This will never give up.
|
# This will never give up.
|
||||||
|
|||||||
Reference in New Issue
Block a user