diff options
Diffstat (limited to 'ext/openssl/lib/net/telnets.rb')
-rw-r--r-- | ext/openssl/lib/net/telnets.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/openssl/lib/net/telnets.rb b/ext/openssl/lib/net/telnets.rb index d277a5c2a6..c869b5da1c 100644 --- a/ext/openssl/lib/net/telnets.rb +++ b/ext/openssl/lib/net/telnets.rb @@ -134,6 +134,9 @@ module Net @sock.verify_callback = @options['VerifyCallback'] @sock.verify_depth = @options['VerifyDepth'] @sock.connect + if @options['VerifyMode'] != OpenSSL::SSL::VERIFY_NONE + @sock.post_connection_check(@options['Host']) + end @ssl = true end '' |