From 634d01ac6993a63f31eadb26ac49128ae01f9860 Mon Sep 17 00:00:00 2001 From: Dmytro Ivanov Date: Wed, 2 Oct 2024 15:07:03 +0200 Subject: Add plugin name command line parameter Make it possible to load commandline provided plugins --- src/zenserver/config.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/zenserver/config.cpp') diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index 7466255a9..e817458a1 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -568,6 +568,7 @@ void ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) { const char* DefaultHttp = "asio"; + const char* DefaultPlugin = ""; #if ZEN_WITH_HTTPSYS if (!zen::windows::IsRunningOnWine()) @@ -708,6 +709,13 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) cxxopts::value(ServerOptions.HttpServerConfig.ServerClass)->default_value(DefaultHttp), ""); + options.add_option("network", + "", + "plugin", + "Select http plugin", + cxxopts::value(ServerOptions.HttpServerConfig.PluginName)->default_value(DefaultPlugin), + ""); + options.add_option("network", "", "http-threads", -- cgit v1.2.3