Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Add Errno::EHOSTUNREACH to ConnectionError
Browse files Browse the repository at this point in the history
  • Loading branch information
fwininger committed Jun 6, 2018
1 parent 8bee131 commit 94f05be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openvas/client.rb
Expand Up @@ -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
Expand Down

0 comments on commit 94f05be

Please sign in to comment.