fix: filter out unwanted hosts for 2048 (#4073)

This commit is contained in:
hoilc
2020-02-25 00:15:52 +08:00
committed by GitHub
parent 9678a640fd
commit 3bcd940fac
+2 -1
View File
@@ -16,7 +16,8 @@ async function getAvailableHosts(ctx) {
.map(function() {
return $(this).attr('href');
})
.get();
.get()
.filter((item) => item.match(/\//g).length < 3);
ctx.cache.set(cache_key, JSON.stringify(hosts));
return hosts;