Skip to content

Commit 0c2f1e3

Browse files
committed
updated
1 parent 83c6648 commit 0c2f1e3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

bin/stealth.pl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use feature qw(say);
1818
use strict;
1919
use open qw(:encoding(utf8));
20-
use vars qw($KNOWN @PATHS $PSL @TLDs $IANA $INFO $EXCLUDE $CHECKED);
20+
use vars qw($KNOWN @PATHS $PSL @TLDs $IANA $INFO $EXCLUDE);
2121
use warnings;
2222

2323
$| = 1;
@@ -66,11 +66,6 @@
6666
}
6767
}
6868

69-
#
70-
# this will remember servers which we know are not RDAP servers
71-
#
72-
$CHECKED = {};
73-
7469
say STDERR 'checking TLDs...';
7570

7671
foreach my $tld (grep { !exists($EXCLUDE->{$_}) } @TLDs) {
@@ -147,7 +142,7 @@ sub check_tld {
147142
}
148143
);
149144

150-
foreach my $host (grep { !exists($CHECKED->{$_}) } map { lc } @hosts) {
145+
foreach my $host (map { lc } @hosts) {
151146
foreach my $path (@paths) {
152147
$path =~ s/\/+/\//g;
153148

@@ -162,8 +157,5 @@ sub check_tld {
162157
return;
163158
}
164159
}
165-
166-
say STDERR sprintf('%s is not an RDAP server', $host);
167-
$CHECKED->{$host} = 1;
168160
}
169161
}

0 commit comments

Comments
 (0)