diff --git a/lib/openvas/client.rb b/lib/openvas/client.rb index bc8ad4d..4944a7e 100644 --- a/lib/openvas/client.rb +++ b/lib/openvas/client.rb @@ -23,7 +23,7 @@ def self.connect # Enable to close socket and SSL layer together socket.sync_close = true socket.connect - rescue Errno::ECONNREFUSED, OpenSSL::SSL::SSLError, SocketError, + rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH, OpenSSL::SSL::SSLError, SocketError, URI::InvalidURIErro => e raise ConnectionError, e end