Fix invalidDomainServers
This commit is contained in:
@ -11,7 +11,7 @@ usimp.lookup = function (domain_name) {
|
|||||||
usimp.chooseDomainServer = function (domainServers, invalidDomainServers = []) {
|
usimp.chooseDomainServer = function (domainServers, invalidDomainServers = []) {
|
||||||
if (domainServers.length === 0) throw Error("No domain servers specified");
|
if (domainServers.length === 0) throw Error("No domain servers specified");
|
||||||
|
|
||||||
domainServers.filter(srv => invalidDomainServers.map(srv => srv.host).includes(srv));
|
domainServers.filter(srv => invalidDomainServers.map(srv => srv.id).includes(srv.id));
|
||||||
if (domainServers.length === 0) throw Error("No domain servers reachable");
|
if (domainServers.length === 0) throw Error("No domain servers reachable");
|
||||||
if (domainServers.length === 1) return domainServers[0];
|
if (domainServers.length === 1) return domainServers[0];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user