kopia lustrzana https://github.com/c9/core
Add new workaround for shared VFS redis entry in onlinedev
rodzic
cf70fa8fc4
commit
16ac761224
|
@ -122,7 +122,8 @@ module.exports = function(options) {
|
|||
servers: options.vfsServers,
|
||||
updateServers: hosted,
|
||||
strictRegion: options.strictRegion
|
||||
|| options.mode === "beta" && "beta"
|
||||
|| options.mode === "beta" && "beta",
|
||||
ignoreProtocolVersion: options.ignoreProtocolVersion,
|
||||
},
|
||||
{
|
||||
packagePath: "plugins/c9.ide.auth/auth",
|
||||
|
|
|
@ -44,6 +44,7 @@ define(function(require, exports, module) {
|
|||
options.updateServers = false;
|
||||
|
||||
var strictRegion = query.region || options.strictRegion;
|
||||
var ignoreProtocolVersion = options.ignoreProtocolVersion;
|
||||
var region = strictRegion || options.region;
|
||||
|
||||
var servers;
|
||||
|
@ -319,7 +320,7 @@ define(function(require, exports, module) {
|
|||
return isBetaServer === isBetaClient;
|
||||
});
|
||||
servers = servers.filter(function(s) {
|
||||
return s.version == undefined || s.version == version;
|
||||
return ignoreProtocolVersion || s.version == undefined || s.version == version;
|
||||
});
|
||||
return servers.sort(function(a, b) {
|
||||
if (a.region == b.region) {
|
||||
|
|
Ładowanie…
Reference in New Issue