diff options
Diffstat (limited to 'server.cpp')
-rw-r--r-- | server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,7 @@ #include "http.h" #include "https.h" +#include "privileges.h" namespace beast = boost::beast; // from <boost/beast.hpp> namespace http = beast::http; // from <boost/beast/http.hpp> @@ -46,6 +47,9 @@ int server(Config& config) servers.back()->start(); } + // set UID, GID + drop_privileges(config); + // Run the I/O service on the requested number of threads std::vector<std::thread> v; v.reserve(threads - 1); |