mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-17 23:19:06 +00:00
Only emit TLS disabled error on misconfig.
This commit is contained in:
parent
6f29696b4f
commit
e50164115b
@ -387,9 +387,11 @@ impl Rocket {
|
||||
if tls_configured && cfg!(feature = "tls") {
|
||||
info_!("tls: {}", White.paint("enabled"));
|
||||
} else {
|
||||
error_!("tls: {}", White.paint("disabled"));
|
||||
if tls_configured {
|
||||
error_!("tls: {}", White.paint("disabled"));
|
||||
error_!("tls is configured, but the tls feature is disabled");
|
||||
} else {
|
||||
info_!("tls: {}", White.paint("disabled"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user