src/server/daemon/webserver.c

branch
cpp-ports
changeset 363
7f0f5c03666a
parent 179
ef6827505bd2
child 386
b91f8efadb63
--- a/src/server/daemon/webserver.c	Sat Jun 04 19:27:25 2022 +0200
+++ b/src/server/daemon/webserver.c	Wed Jun 08 18:55:59 2022 +0200
@@ -45,7 +45,7 @@
 #include "../public/nsapi.h"
 #include "../public/auth.h"
 #include "../util/systhr.h"
-#include "../util/io.h"
+#include "../util/pblock.h"
 #include "../util/util.h"
 
 #include "../../ucx/utils.h"
@@ -57,7 +57,6 @@
 #include "configmanager.h"
 #include "httplistener.h"
 #include "webserver.h"
-#include "log.h"
 #include "auth.h"
 #include "srvctrl.h"
 
@@ -75,6 +74,8 @@
     }
     
     // init NSAPI functions
+    pblock_init_default_keys();
+    atexit(pblock_free_default_keys);
     func_init();
     add_functions(webserver_funcs);
     

mercurial