feature: Add support for getting inbound connection.
Also fixes any bugs I found.
This commit is contained in:
parent
b99d6a89dc
commit
a9fcdea037
8 changed files with 146 additions and 17 deletions
|
@ -179,7 +179,7 @@ export class SSHBackendProvider implements BackendBaseClass {
|
|||
srcConn.write(chunk);
|
||||
});
|
||||
|
||||
destConn.addListener("close", () => {
|
||||
destConn.addListener("end", () => {
|
||||
this.clients.splice(this.clients.indexOf(client), 1);
|
||||
srcConn.end();
|
||||
});
|
||||
|
@ -190,7 +190,7 @@ export class SSHBackendProvider implements BackendBaseClass {
|
|||
|
||||
srcConn.on("end", () => {
|
||||
this.clients.splice(this.clients.indexOf(client), 1);
|
||||
destConn.close();
|
||||
destConn.end();
|
||||
});
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue