mirror of
https://github.com/umputun/reproxy.git
synced 2024-08-16 20:20:45 +03:00
return error on wrong ssl.type value
This commit is contained in:
parent
a3d0c10302
commit
22bea287e4
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user