mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-30 13:04:27 +03:00
Add keep alive in advanced setting
This commit is contained in:
parent
6a59db1a36
commit
4b3cbc5639
@ -14,6 +14,9 @@ export interface SSHConnection {
|
||||
privateKey?: string
|
||||
group?: string
|
||||
scripts?: LoginScript[]
|
||||
keepaliveInterval?: number
|
||||
keepaliveCountMax?: number
|
||||
readyTimeout?: number
|
||||
}
|
||||
|
||||
export class SSHSession extends BaseSession {
|
||||
|
@ -58,6 +58,34 @@
|
||||
button.btn.btn-secondary((click)='selectPrivateKey()')
|
||||
i.fa.fa-folder-open
|
||||
|
||||
ngb-tab(id='advanced')
|
||||
ng-template(ngbTabTitle)
|
||||
| Advanced Setting
|
||||
ng-template(ngbTabContent)
|
||||
.form-group
|
||||
label Keep Alive Interval (Milliseconds)
|
||||
input.form-control(
|
||||
type='number',
|
||||
placeholder='0',
|
||||
[(ngModel)]='connection.keepaliveInterval',
|
||||
)
|
||||
|
||||
.form-group
|
||||
label Max Keep Alive Count
|
||||
input.form-control(
|
||||
type='number',
|
||||
placeholder='3',
|
||||
[(ngModel)]='connection.keepaliveCountMax',
|
||||
)
|
||||
|
||||
.form-group
|
||||
label Ready Timeout (Milliseconds)
|
||||
input.form-control(
|
||||
type='number',
|
||||
placeholder='20000',
|
||||
[(ngModel)]='connection.readyTimeout',
|
||||
)
|
||||
|
||||
ngb-tab(id='scripts')
|
||||
ng-template(ngbTabTitle)
|
||||
| Login Scripts
|
||||
|
@ -110,6 +110,9 @@ export class SSHService {
|
||||
tryKeyboard: true,
|
||||
agent,
|
||||
agentForward: !!agent,
|
||||
keepaliveInterval: connection.keepaliveInterval,
|
||||
keepaliveCountMax: connection.keepaliveCountMax,
|
||||
readyTimeout: connection.readyTimeout,
|
||||
})
|
||||
|
||||
let keychainPasswordUsed = false
|
||||
|
Loading…
Reference in New Issue
Block a user