mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
main.go: Added allowed versions in Error Unsupported TLS min version
This commit is contained in:
parent
49c164218b
commit
5e6294cec0
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ func (app *restServerApp) runRoot(_ *cobra.Command, _ []string) error {
|
|||
case "1.3":
|
||||
tlscfg.MinVersion = tls.VersionTLS13
|
||||
default:
|
||||
return fmt.Errorf("Unsupported TLS min version: %s", app.Server.TLSMinVer)
|
||||
return fmt.Errorf("Unsupported TLS min version: %s. Allowed versions are 1.2 or 1.3", app.Server.TLSMinVer)
|
||||
}
|
||||
|
||||
srv := &http.Server{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue