Skip to content

Commit

Permalink
Fix missing attributes on SSL sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Dec 19, 2024
1 parent 227143e commit c810037
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rex/proto/ldap.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'forwardable'
require 'net/ldap'
require 'rex/socket'

Expand Down Expand Up @@ -205,6 +206,8 @@ def initialize(server)

if server[:encryption]
setup_encryption server[:encryption]
@conn.extend Forwardable
@conn.def_delegators :@io, :localinfo, :peerinfo
end

yield self if block_given?
Expand Down

0 comments on commit c810037

Please sign in to comment.