mirror of
https://github.com/yudai/gotty.git
synced 2025-12-26 12:18:49 +01:00
fix: enable_basic_auth from config file being ignored
This commit is contained in:
parent
53628c44b4
commit
76ad21a86f
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -66,7 +66,7 @@ func main() {
|
|||
|
||||
utils.ApplyFlags(cliFlags, flagMappings, c, appOptions, backendOptions)
|
||||
|
||||
appOptions.EnableBasicAuth = c.IsSet("credential")
|
||||
appOptions.EnableBasicAuth = appOptions.EnableBasicAuth || c.IsSet("credential")
|
||||
appOptions.EnableTLSClientAuth = c.IsSet("tls-ca-crt")
|
||||
|
||||
err = appOptions.Validate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue