mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Never use staging VFS servers if we're not on staging
This commit is contained in:
parent
be1b80294d
commit
a0fc09fc1f
@ -304,12 +304,20 @@ define(function(require, exports, module) {
|
||||
}
|
||||
|
||||
function shuffleServers(version, servers) {
|
||||
// If a strict region is specified, only use that region
|
||||
servers = servers.slice();
|
||||
if (strictRegion) {
|
||||
servers = servers.filter(function(s) {
|
||||
return s.region === strictRegion;
|
||||
});
|
||||
}
|
||||
// Never use staging servers if we're not on staging,
|
||||
// even though they appear in the production VFS registry
|
||||
var isBetaClient = region === "beta";
|
||||
servers = servers.filter(function(s) {
|
||||
var isBetaServer = s.region === "beta";
|
||||
return isBetaServer === isBetaClient;
|
||||
});
|
||||
servers = servers.filter(function(s) {
|
||||
return s.version == undefined || s.version == version;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user