Improve hush_scanner and seed node contrib file
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user