this fixes #3602, incompatabilities TBD

git-svn-id: file:///home/svn/framework3/trunk@11076 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2010-11-19 22:32:29 +00:00
parent b5c5e21b24
commit 51fd4fb550
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ class Rex::Socket::Comm::Local
rescue ::Errno::EHOSTUNREACH,::Errno::ENETDOWN,::Errno::ENETUNREACH,::Errno::ENETRESET,::Errno::EHOSTDOWN,::Errno::EACCES,::Errno::EINVAL
sock.close
raise Rex::HostUnreachable.new(param.peerhost, param.peerport), caller
rescue ::Errno::EADDRNOTAVAIL,::Errno::EADDRINUSE
sock.close
raise Rex::AddressInUse.new(param.peerhost, param.peerport), caller