We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3887ad commit ebcf83eCopy full SHA for ebcf83e
lib/net/ldap.rb
@@ -1352,7 +1352,7 @@ def normalize_encryption(args)
1352
{ method: :simple_tls,
1353
tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS }
1354
elsif args.is_a? Hash
1355
- if args[:tls_options].to_sym == :default
+ if !args[:tls_options].nil? && args[:tls_options].to_s.to_sym == :default
1356
args.merge(tls_options: OpenSSL::SSL::SSLContext::DEFAULT_PARAMS)
1357
else
1358
args
0 commit comments