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 e8e6602 commit d8f9f37Copy full SHA for d8f9f37
lib/net/ldap/connection.rb
@@ -10,7 +10,7 @@ def initialize(server)
10
@instrumentation_service = server[:instrumentation_service]
11
12
begin
13
- @conn = TCPSocket.new(server[:host], server[:port])
+ @conn = server[:socket] || TCPSocket.new(server[:host], server[:port])
14
rescue SocketError
15
raise Net::LDAP::LdapError, "No such address or other socket error."
16
rescue Errno::ECONNREFUSED
0 commit comments