From 79c050707700a7c95b725d3b5df875df6d3a883f Mon Sep 17 00:00:00 2001 From: nmonkee Date: Thu, 22 Nov 2012 09:43:16 +0000 Subject: [PATCH] Fix syntax errors --- lib/rex/socket/comm/local.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rex/socket/comm/local.rb b/lib/rex/socket/comm/local.rb index df1051c8d5..c35a0cb741 100644 --- a/lib/rex/socket/comm/local.rb +++ b/lib/rex/socket/comm/local.rb @@ -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}")