summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/protocoltest')
-rw-r--r--lib/custodian/protocoltest/mx.rb2
-rw-r--r--lib/custodian/protocoltest/ssl.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/custodian/protocoltest/mx.rb b/lib/custodian/protocoltest/mx.rb
index 8f260f9..c05283d 100644
--- a/lib/custodian/protocoltest/mx.rb
+++ b/lib/custodian/protocoltest/mx.rb
@@ -73,7 +73,7 @@ module Custodian
Resolv::DNS.open do |dns|
ress = dns.getresources(@host, Resolv::DNS::Resource::IN::MX)
- ress.map { |r| mx.push( IPSocket::getaddress(r.exchange.to_s) ) }
+ ress.map { |r| mx.push( IPSocket.getaddress(r.exchange.to_s) ) }
end
end
rescue Timeout::Error => e
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb
index 18da9f1..4929f7b 100644
--- a/lib/custodian/protocoltest/ssl.rb
+++ b/lib/custodian/protocoltest/ssl.rb
@@ -154,7 +154,7 @@ class SSLCheck
ctx = OpenSSL::SSL::SSLContext.new(:TLSv1_client)
retried = false
begin
- Timeout::timeout(10) do
+ Timeout.timeout(10) do
s = TCPSocket.open(uri.host, uri.port)
s = OpenSSL::SSL::SSLSocket.new(s, ctx)
s.sync_close = true
@@ -212,7 +212,7 @@ class SSLCheck
s = nil
begin
- Timeout::timeout(10) do
+ Timeout.timeout(10) do
s = TCPSocket.open(uri.host, uri.port)
s = OpenSSL::SSL::SSLSocket.new(s, OpenSSL::SSL::SSLContext.new(:SSLv3_client))
s.sync_close = true