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