Fix syntax errors

unstable
nmonkee 2012-11-22 09:43:16 +00:00
parent 088d20c5a9
commit 79c0507077
1 changed files with 3 additions and 3 deletions

View File

@ -404,11 +404,11 @@ class Rex::Socket::Comm::Local
case
if ret =~ /NI_RTERR/
case ret
when =~ /timed out/
when /timed out/
raise Rex::ConnectionProxyError.new(host, port, type, "Connection to remote host #{host} timed out")
when =~ /refused/
when /refused/
raise Rex::ConnectionProxyError.new(host, port, type, "Connection to remote port #{port} closed")
when =~ /denied/
when /denied/
raise Rex::ConnectionProxyError.new(host, port, type, "Connection to #{host}:#{port} blocked by ACL")
else
raise Rex::ConnectionProxyError.new(host, port, type, "Connection to #{host}:#{port} failed - #{ret}\n\n#{ni_packet}")