Skip to content

Commit 5d00915

Browse files
committed
updated
1 parent 3074043 commit 5d00915

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/stealth.pl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@
8989

9090
say STDERR 'running...';
9191

92-
say STDERR 'updating Tranco list...';
93-
Data::Tranco->update_db;
94-
9592
say STDERR 'mirroring PSL...';
9693
$PSL = Domain::PublicSuffix->new({ data_file => mirror_file(PSL_URL) });
9794

@@ -190,7 +187,7 @@ sub check_tld {
190187

191188
my $ua = LWP::UserAgent->new(
192189
user_agent => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0',
193-
timeout => 1,
190+
timeout => 3,
194191
ssl_opts => {
195192
# for the purposes of this survey, we don't care about
196193
# whether the server has a valid TLS certificate
@@ -204,7 +201,9 @@ sub check_tld {
204201
say STDERR sprintf('checking %s...', $url);
205202
my $result = $ua->request(GET($url, connection => 'close'));
206203

207-
if (200 == $result->code && $result->header('content-type') =~ /^application\/(rdap\+?)json/i) {
204+
say STDERR $result->status_line;
205+
206+
if (200 == $result->code && $result->header('content-type') =~ /^application\/(rdap\+)?json/i) {
208207
say STDERR sprintf('%s returned an RDAP response!', $url);
209208
say STDOUT $tld;
210209

0 commit comments

Comments
 (0)