Improve hush_scanner and seed node contrib file

This commit is contained in:
Duke
2024-02-18 22:26:32 -05:00
parent 7fc0b4ffc2
commit 16dd3aef74
2 changed files with 29 additions and 0 deletions

View File

@@ -16,6 +16,13 @@ print "HOST P2P RPC\n";
while (<>) {
chomp;
my $host = $_;
# skip empty lines
next unless $host;
# skip comment lines
next if ($host =~ m/^#/);
my $p2pport = $ENV{P2PPORT} || 18030;
my $rpcport = $ENV{RPCPORT} || $p2pport + 1;
my $cmd1 = qq{nc -z -w2 $host $p2pport};