Skip to content

Commit c810037

Browse files
committed
Fix missing attributes on SSL sockets
1 parent 227143e commit c810037

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/rex/proto/ldap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'forwardable'
12
require 'net/ldap'
23
require 'rex/socket'
34

@@ -205,6 +206,8 @@ def initialize(server)
205206

206207
if server[:encryption]
207208
setup_encryption server[:encryption]
209+
@conn.extend Forwardable
210+
@conn.def_delegators :@io, :localinfo, :peerinfo
208211
end
209212

210213
yield self if block_given?

0 commit comments

Comments
 (0)