mirror of
https://github.com/yudai/gotty.git
synced 2026-01-06 17:48:50 +01:00
Support auto reconnection
A new option `--auto-reconnect` which takes seconds to reconnect is added.
This commit is contained in:
parent
4df9ac8059
commit
acacba6f03
6 changed files with 97 additions and 55 deletions
17
app/app.go
17
app/app.go
|
|
@ -32,14 +32,15 @@ type App struct {
|
|||
}
|
||||
|
||||
type Options struct {
|
||||
Address string
|
||||
Port string
|
||||
PermitWrite bool
|
||||
Credential string
|
||||
RandomUrl bool
|
||||
ProfileFile string
|
||||
TitleFormat string
|
||||
Command []string
|
||||
Address string
|
||||
Port string
|
||||
PermitWrite bool
|
||||
Credential string
|
||||
RandomUrl bool
|
||||
ProfileFile string
|
||||
TitleFormat string
|
||||
AutoReconnect int
|
||||
Command []string
|
||||
}
|
||||
|
||||
const DefaultProfileFilePath = "~/.gotty"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue