summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/tcp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-15 14:17:29 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-15 14:17:29 +0100
commit953fc70466a919df1e4fce6fc3dea40b951e2185 (patch)
treee196112ccd23b46ee94cfe0d59f3de8a541e3212 /lib/custodian/protocoltest/tcp.rb
parentca28243dce53f0feab9efb535b00f594e511c71c (diff)
The TCP-test now uses a regexp.
Each test has been updated to pass a regexp object to the tcp.rb primitive which actually does the socket connection. This closes #4036
Diffstat (limited to 'lib/custodian/protocoltest/tcp.rb')
-rw-r--r--lib/custodian/protocoltest/tcp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/tcp.rb b/lib/custodian/protocoltest/tcp.rb
index 822b82c..a28ed33 100644
--- a/lib/custodian/protocoltest/tcp.rb
+++ b/lib/custodian/protocoltest/tcp.rb
@@ -160,7 +160,7 @@ module Custodian
return true
else
# test for banner
- if ( ( !read.nil? ) && ( read =~ /#{banner}/i ) )
+ if ( ( !read.nil? ) && ( banner.match(read) ) )
return true
end