Skip to content

Commit e5e3474

Browse files
author
HD Moore
committed
Handle ICMP "protocol not available" errors as connection errors
1 parent 29ac27f commit e5e3474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/socket/comm/local.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def self.create_by_type(param, type, proto = 0)
281281
raise ::Errno::ETIMEDOUT
282282
end
283283

284-
rescue ::Errno::EHOSTUNREACH,::Errno::ENETDOWN,::Errno::ENETUNREACH,::Errno::ENETRESET,::Errno::EHOSTDOWN,::Errno::EACCES,::Errno::EINVAL
284+
rescue ::Errno::EHOSTUNREACH,::Errno::ENETDOWN,::Errno::ENETUNREACH,::Errno::ENETRESET,::Errno::EHOSTDOWN,::Errno::EACCES,::Errno::EINVAL,::Errno::ENOPROTOOPT
285285

286286
# Rescue errors caused by a bad Scope ID for a link-local address
287287
if retry_scopes and @@ip6_lla_scopes[ ip6_scope_idx ]

0 commit comments

Comments
 (0)