diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-24 09:50:30 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-24 09:50:30 +0000 |
commit | e50f85adcb432192b35cf7b878c9104d697ad1a3 (patch) | |
tree | 6e7ec9c2ad29b0721d8860be48732af5ec51dabb /ge.c | |
parent | a0a42860d214974f2706d2a47203af9bc884f512 (diff) |
load the certs per listening address
Diffstat (limited to 'ge.c')
-rw-r--r-- | ge.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -213,6 +213,9 @@ serve(struct conf *conf, const char *host, int port, const char *dir) event_set(&addr->evsock, addr->sock, EV_READ|EV_PERSIST, do_accept, addr); + if ((addr->ctx = tls_server()) == NULL) + fatal("tls_server failure"); + TAILQ_INSERT_HEAD(&conf->addrs, addr, addrs); acp = xcalloc(1, sizeof(*acp)); |