Skip to content

Commit 45ac34d

Browse files
author
Juha Suuraho
committed
fix (socket) Use default socketclass if server has nil socketclass.
1 parent 99d93ea commit 45ac34d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/ldap/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def initialize(server = {})
2222
@instrumentation_service = server[:instrumentation_service]
2323

2424
# Allows tests to parameterize what socket class to use
25-
@socket_class = server.fetch(:socket_class, DefaultSocket)
25+
@socket_class = server.fetch(:socket_class, DefaultSocket) || DefaultSocket
2626

2727
yield self if block_given?
2828
end

0 commit comments

Comments
 (0)