From 16223983a7fbb99f337121677aad86e9f998908a Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 15 Sep 2021 22:39:21 +0800 Subject: [PATCH] refactor: 1 --- packages/mitmproxy/src/lib/speed/SpeedTester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mitmproxy/src/lib/speed/SpeedTester.js b/packages/mitmproxy/src/lib/speed/SpeedTester.js index 56fbac1..4f2af26 100644 --- a/packages/mitmproxy/src/lib/speed/SpeedTester.js +++ b/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')