refactor: 1
parent
09ede0ade7
commit
16223983a7
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue