Browse Source

refactor: 1

pull/192/head
xiaojunnuo 3 years ago
parent
commit
16223983a7
  1. 2
      packages/mitmproxy/src/lib/speed/SpeedTester.js

2
packages/mitmproxy/src/lib/speed/SpeedTester.js

@ -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…
Cancel
Save