From 22bea287e424e22c8c4eb180d3ccb7f3cbda7017 Mon Sep 17 00:00:00 2001 From: Negasus Date: Tue, 15 Feb 2022 11:36:24 +0300 Subject: [PATCH] return error on wrong ssl.type value --- app/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.go b/app/main.go index 1edcbd7..d933d88 100644 --- a/app/main.go +++ b/app/main.go @@ -404,6 +404,8 @@ func makeSSLConfig() (config proxy.SSLConfig, err error) { config.ACMEEmail = opts.SSL.ACMEEmail config.FQDNs = fqdns(opts.SSL.FQDNs) config.RedirHTTPPort = redirHTTPPort(opts.SSL.RedirHTTPPort) + default: + return config, errors.New("wrong ssl.type value, use 'none', 'static' or 'auto'") } return config, err }