refactor: 1

pull/192/head
xiaojunnuo 2021-09-15 22:39:21 +08:00
parent 09ede0ade7
commit 16223983a7
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class SpeedTester {
}
async test () {
if (this.backupList.length === 0 || this.testCount < 10 || this.testCount % 5 === 3) {
if (this.backupList.length === 0 || this.testCount < 10 || this.testCount % 5 === 0) {
const newList = await this.getIpListFromDns(this.dnsMap)
const newBackupList = [...newList, ...this.backupList]
this.backupList = _.unionBy(newBackupList, 'host')