Merge pull request #69 from dirtyfilthy/ssh_forward_eof_fix

fix for ssh forwarding not handling the eof packet type
unstable
HD Moore 2011-12-20 00:09:39 -08:00
commit ff03f2de8d
1 changed files with 4 additions and 0 deletions

View File

@ -214,6 +214,10 @@ module Net; module SSH; module Service
session.stop_listening_to(ch[:socket]) session.stop_listening_to(ch[:socket])
end end
channel.on_eof do |ch|
ch.close
end
channel.on_process do |ch| channel.on_process do |ch|
if ch[:socket].closed? if ch[:socket].closed?
ch.info { "#{type} forwarded connection closed" } ch.info { "#{type} forwarded connection closed" }