mirror of
https://github.com/yudai/gotty.git
synced 2025-12-23 10:50:14 +01:00
Merge profile and config files and support custom index file
This commit is contained in:
parent
25a5bc0b89
commit
d3e48aa3ae
8 changed files with 111 additions and 121 deletions
4
main.go
4
main.go
|
|
@ -28,7 +28,7 @@ func main() {
|
|||
flag{"tls", "t", "Enable TLS/SSL"},
|
||||
flag{"tls-crt", "", "TLS/SSL crt file path"},
|
||||
flag{"tls-key", "", "TLS/SSL key file path"},
|
||||
flag{"profile", "", "Profile file path"},
|
||||
flag{"index", "", "Custom index file"},
|
||||
flag{"title-format", "", "Title format of browser window"},
|
||||
flag{"reconnect", "", "Enable reconnection"},
|
||||
flag{"reconnect-time", "", "Time to reconnect"},
|
||||
|
|
@ -36,7 +36,7 @@ func main() {
|
|||
}
|
||||
|
||||
mappingHint := map[string]string{
|
||||
"profile": "ProfileFile",
|
||||
"index": "IndexFile",
|
||||
"tls": "EnableTLS",
|
||||
"tls-crt": "TLSCrtFile",
|
||||
"tls-key": "TLSKeyFile",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue