[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #106 from zoey-fux/develop
Browse files Browse the repository at this point in the history
fix #100 - send eof before sending exit code
  • Loading branch information
manfred-kaiser committed Jun 17, 2022
2 parents 0a72cad + bb33f22 commit 0dfc7e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sshmitm/forwarders/scp.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def forward(self) -> None:
self.close_session(self.session.scp_channel)
break
if self.session.scp_channel.eof_received:
message = Message()
message.add_byte(cMSG_CHANNEL_EOF)
message.add_int(self.session.scp_channel.remote_chanid)
self.session.scp_channel.transport._send_user_message(message) # type: ignore
self.session.scp_channel.send_exit_status(0)
self.close_session(self.session.scp_channel)
break
Expand Down

0 comments on commit 0dfc7e5

Please sign in to comment.