Updated
This commit is contained in:
		| @@ -37,7 +37,7 @@ namespace EonaCat.DnsTester | ||||
|                 } | ||||
|             } | ||||
|  | ||||
|             if (_useCustomDnsServers && (!chkDns1.Checked || chkDns2.Checked)) | ||||
|             if (_useCustomDnsServers && (!chkDns1.Checked && !chkDns2.Checked)) | ||||
|             { | ||||
|                 MessageBox.Show("Please enable DNS 1 or 2 before using custom Dns"); | ||||
|                 return; | ||||
| @@ -50,6 +50,11 @@ namespace EonaCat.DnsTester | ||||
|             int numThreads = (int)numericUpDown2.Value; // number of concurrent threads to use | ||||
|             int maxUrls = (int)numericUpDown1.Value; // maximum number of unique URLs to retrieve | ||||
|             int numUrlsPerThread = maxUrls / numThreads; | ||||
|             if (numUrlsPerThread == 0) | ||||
|             { | ||||
|                 numUrlsPerThread = maxUrls; | ||||
|                 numThreads = 1; | ||||
|             } | ||||
|  | ||||
|  | ||||
|             urls = await UrlHelper.RetrieveUrls(numThreads, numUrlsPerThread); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user