Skip to content

Commit a193f6e

Browse files
committed
reject SSH operations on connection end and close, for firefox
1 parent 7484b44 commit a193f6e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/cloud/install/installer.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,14 @@ class CloudInstaller {
120120
});
121121
}).on('end', () => {
122122
log.debug('connection end');
123+
R({
124+
message: 'connection end without invitation URL'
125+
});
123126
}).on('close', (hadError: boolean) => {
124127
log.debug('connection close, with%1 error', (hadError ? '' : 'out'));
128+
R({
129+
message: 'connection close without invitation URL'
130+
});
125131
}).connect(connectConfig);
126132
});
127133
}

src/cloud/social/provider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,15 @@ class Connection {
542542
}).on('end', () => {
543543
log.debug('%1: connection end', this.name_);
544544
this.setState_(ConnectionState.TERMINATED);
545+
R({
546+
message: 'connection end without ping'
547+
});
545548
}).on('close', (hadError: boolean) => {
546549
log.debug('%1: connection close, with%2 error', this.name_, (hadError ? '' : 'out'));
547550
this.setState_(ConnectionState.TERMINATED);
551+
R({
552+
message: 'connection close without ping'
553+
});
548554
}).connect(connectConfig);
549555
});
550556
}

0 commit comments

Comments
 (0)