summaryrefslogtreecommitdiff
path: root/src/worker.c
diff options
context:
space:
mode:
authorSoikk2026-01-01 19:49:02 +0100
committerSoikk2026-01-01 20:16:58 +0100
commite88c9d1739695ed8172c0eceffdc3d2c6e656403 (patch)
tree535e60128df31b5411242d2620e728b540c508a7 /src/worker.c
parent8cdb3ba9256bf61453c25ee728349cd18dabe236 (diff)
downloadsoikk-server-master.tar.xz
soikk-server-master.tar.zst
Fixed receive_request for HTTPS connections and enabled HTTPS through the config fileHEADmaster
Diffstat (limited to 'src/worker.c')
-rwxr-xr-xsrc/worker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index 0c29ca7..8312a74 100755
--- a/src/worker.c
+++ b/src/worker.c
@@ -115,6 +115,12 @@ int init(str name){
log_error("Error setting up worker server");
return 1;
}
+ if(conf.secure){
+ if(setup_https(server, conf.cert, conf.key)){
+ log_error("Error setting up HTTPS in the server");
+ return 1;
+ }
+ }
struct sigaction rnit = { .sa_sigaction = reinit, .sa_flags = SA_SIGINFO };
if(sigaction(SIGUSR1, &rnit, NULL) == -1){
log_error("Error setting up SIGUSR1 signal handler: %s", strerror(errno));