mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Log if no TLS server was configured
This commit is contained in:
parent
a641c29301
commit
685f504564
@ -258,6 +258,12 @@ kore_connection_handle(struct connection *c)
|
||||
|
||||
switch (c->state) {
|
||||
case CONN_STATE_TLS_SHAKE:
|
||||
if (primary_dom == NULL) {
|
||||
kore_log(LOG_NOTICE,
|
||||
"TLS handshake but no TLS configured on server");
|
||||
return (KORE_RESULT_ERROR);
|
||||
}
|
||||
|
||||
if (primary_dom->ssl_ctx == NULL) {
|
||||
kore_log(LOG_NOTICE,
|
||||
"TLS configuration for %s not yet complete",
|
||||
|
Loading…
x
Reference in New Issue
Block a user