mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 12:08:21 +02:00
Listen to 'env' events
This commit is contained in:
parent
bdce70a5e2
commit
b23cdd20bf
1 changed files with 8 additions and 0 deletions
|
@ -238,6 +238,14 @@ function SSHClient(clientConn) {
|
|||
}
|
||||
});
|
||||
|
||||
session.on('env', (accept, reject, info) => {
|
||||
self.log.debug(info, 'SSH env event');
|
||||
|
||||
if(_.isFunction(accept)) {
|
||||
accept();
|
||||
}
|
||||
});
|
||||
|
||||
session.on('shell', accept => {
|
||||
self.log.debug('SSH shell event');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue