From ebeeebb60542916c03dcd135928ff4c8778dd847 Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Thu, 11 Jul 2024 08:46:59 +0200 Subject: [PATCH] Fix --disable-tls --- src/mod/webui.mod/webui.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/webui.mod/webui.c b/src/mod/webui.mod/webui.c index b98519b55..878ad4ad5 100644 --- a/src/mod/webui.mod/webui.c +++ b/src/mod/webui.mod/webui.c @@ -21,6 +21,9 @@ * */ +#include "src/mod/module.h" + +#ifdef TLS #define MODULE_NAME "webui" #include @@ -31,7 +34,7 @@ #include #include #include "src/version.h" -#include "src/mod/module.h" + #define WS_GUID "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" #define WS_KEY "Sec-WebSocket-Key:" @@ -478,6 +481,7 @@ static Function webui_table[] = { NULL, }; +#endif char *webui_start(Function *global_funcs) { #ifdef TLS