Skip to content

Commit 8abb964

Browse files
committed
Set the socket info
1 parent 5b12a47 commit 8abb964

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rex/proto/ms_tds/channel.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def initialize(opts = {})
2121
@sock = Rex::Socket.create_param(@params)
2222
initialize_abstraction
2323

24+
lsock.initinfo(@sock.peerinfo, @sock.localinfo)
25+
2426
monitor_sock(@sock, sink: method(:_read_handler), name: 'MonitorLocal', on_exit: method(:_exit_handler))
2527
end
2628

0 commit comments

Comments
 (0)