main.go: Added allowed versions in Error Unsupported TLS min version

This commit is contained in:
darkspir 2025-03-28 14:14:29 +01:00 committed by Michael Eischer
parent 49c164218b
commit 5e6294cec0

View file

@ -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{