Ignore proxy errors during scanning
git-svn-id: file:///home/svn/framework3/trunk@7962 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b13e185943
commit
a9ec7c8b21
|
@ -92,7 +92,7 @@ def run
|
|||
nmod.run_host(targ)
|
||||
rescue ::Interrupt,::NoMethodError, ::RuntimeError, ::ArgumentError, ::NameError
|
||||
raise $!
|
||||
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET, ::Errno::EINTR
|
||||
rescue ::Rex::ConnectionError, ::Rex::ConnectionProxyError, ::Errno::ECONNRESET, ::Errno::EINTR
|
||||
rescue ::Exception => e
|
||||
print_status("Error: #{targ}: #{e.class} #{e.message}")
|
||||
elog("Error running against host #{targ}: #{e.message}\n#{e.backtrace.join("\n")}")
|
||||
|
@ -160,7 +160,7 @@ def run
|
|||
nmod.run_batch(mybatch)
|
||||
rescue ::Interrupt,::NoMethodError, ::RuntimeError, ::ArgumentError, ::NameError
|
||||
raise $!
|
||||
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET
|
||||
rescue ::Rex::ConnectionError, ::Rex::ConnectionProxyError, ::Errno::ECONNRESET, ::Errno::EINTR
|
||||
rescue ::Exception => e
|
||||
print_status("Error: #{mybatch[0]}-#{mybatch[-1]}: #{e}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue