kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 9e5e698e4b74a39f601dc1610cb7fb37c4bae56c
parent 82d7b584058d78ead941b361bb3a2d46402d32e2
Author: Joris Vink <joris@coders.se>
Date:   Fri, 21 Feb 2020 13:58:03 +0100

only count TLS enabled domains as primary_dom.

Otherwise one can run into trouble with ACME if it was enabled on
domains but the first domain in the configuration was a non TLS domain.

Diffstat:
src/domain.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/domain.c b/src/domain.c @@ -219,6 +219,10 @@ kore_domain_attach(struct kore_domain *dom, struct kore_server *server) dom->server = server; TAILQ_INSERT_TAIL(&server->domains, dom, list); + /* The primary domain should be attached to a TLS context. */ + if (server->tls == 0 && dom == primary_dom) + primary_dom = NULL; + return (KORE_RESULT_OK); }