Skip to content

Commit 4c60dce

Browse files
authored
Merge pull request #796 from lightglitch/patch-1
Fix dead hosts verification count
2 parents 771f31f + bee2ceb commit 4c60dce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/internal/host.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const internalHost = {
106106
response_object.total_count += response_object.redirection_hosts.length;
107107
}
108108

109-
if (promises_results[1]) {
109+
if (promises_results[2]) {
110110
// Dead Hosts
111111
response_object.dead_hosts = internalHost._getHostsWithDomains(promises_results[2], domain_names);
112112
response_object.total_count += response_object.dead_hosts.length;
@@ -158,7 +158,7 @@ const internalHost = {
158158
}
159159
}
160160

161-
if (promises_results[1]) {
161+
if (promises_results[2]) {
162162
// Dead Hosts
163163
if (internalHost._checkHostnameRecordsTaken(hostname, promises_results[2], ignore_type === 'dead' && ignore_id ? ignore_id : 0)) {
164164
is_taken = true;

0 commit comments

Comments
 (0)