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

Commit

Permalink
Merge pull request #504 from secureCodeBox/add-missing-rescue
Browse files Browse the repository at this point in the history
Add rescue for ENOPROTOOPT errors
  • Loading branch information
Jonathan Claudius authored Aug 27, 2019
2 parents 65051a9 + 414332a commit d18f70c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ssh_scan/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def connect()
rescue Errno::EHOSTUNREACH => e
@error = SSHScan::Error::ConnectionRefused.new(e.message)
@sock = nil
rescue Errno::ENOPROTOOPT => e
@error = SSHScan::Error::ConnectionRefused.new(e.message)
@sock = nil
else
if @raw_server_banner.nil?
@error = SSHScan::Error::NoBanner.new(
Expand Down

0 comments on commit d18f70c

Please sign in to comment.