Merge pull request #69 from dirtyfilthy/ssh_forward_eof_fix
fix for ssh forwarding not handling the eof packet typeunstable
commit
ff03f2de8d
|
@ -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" }
|
||||||
|
|
Loading…
Reference in New Issue