From 2f56f0515ea668d8128c8178151307dac3d38554 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 16 May 2014 18:16:45 +0200 Subject: [PATCH] don't scan the same host twice --- top1m/testtop1m.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/top1m/testtop1m.sh b/top1m/testtop1m.sh index fb1a618..b2cb0ef 100755 --- a/top1m/testtop1m.sh +++ b/top1m/testtop1m.sh @@ -24,6 +24,10 @@ function wait_for_jobs() { } function scan_host() { + # do not scan the same host multiple times + if [ -e results/$1@$2 ]; then + return + fi tcping -u 10000000 $2 443; if [ $? -gt 0 ]; then return @@ -32,6 +36,10 @@ function scan_host() { } function scan_host_no_sni() { + # do not scan the same host multiple times + if [ -e results/$1 ]; then + return + fi tcping -u 10000000 $1 443; if [ $? -gt 0 ]; then return