This commit is contained in:
EonaCat 2023-03-02 19:06:28 +01:00
parent 36aaddf85e
commit 72ecce97a9
1 changed files with 6 additions and 1 deletions

View File

@ -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);