Skip to content
Snippets Groups Projects
Commit 8f43f67f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log an error if ssl_sync() fails, for W6RAY

Hopefully help debug why HTTPS isn't working for him
parent f072d141
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -7243,7 +7243,9 @@ void web_server(void* arg)
*/
xpms_add_list(ws_set, PF_UNSPEC, SOCK_STREAM, 0, startup->interfaces, startup->port, "Web Server", open_socket, startup->seteuid, NULL);
if (startup->options & WEB_OPT_ALLOW_TLS) {
if(ssl_sync(&scfg, lprintf))
if(!ssl_sync(&scfg, lprintf))
lprintf(LOG_CRIT, "!ssl_sync() failure trying to enable TLS support");
else
xpms_add_list(ws_set, PF_UNSPEC, SOCK_STREAM, 0, startup->tls_interfaces, startup->tls_port, "Secure Web Server", open_socket, startup->seteuid, "TLS");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment