mirror of
https://github.com/yudai/gotty.git
synced 2025-12-26 12:18:49 +01:00
Add timeout option
This commit is contained in:
parent
c91fef051b
commit
8c9433ff21
5 changed files with 60 additions and 16 deletions
1
main.go
1
main.go
|
|
@ -33,6 +33,7 @@ func main() {
|
|||
flag{"title-format", "", "Title format of browser window"},
|
||||
flag{"reconnect", "", "Enable reconnection"},
|
||||
flag{"reconnect-time", "", "Time to reconnect"},
|
||||
flag{"timeout", "", "Timeout seconds for waiting a client (0 to disable)"},
|
||||
flag{"max-connection", "", "Maximum connection to gotty, 0(default) means no limit"},
|
||||
flag{"once", "", "Accept only one client and exit on disconnection"},
|
||||
flag{"permit-arguments", "", "Permit clients to send command line arguments in URL (e.g. http://example.com:8080/?arg=AAA&arg=BBB)"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue