diff --git a/apps/freelan/src/configuration_helper.cpp b/apps/freelan/src/configuration_helper.cpp index f24b9e6b..4394fcaa 100644 --- a/apps/freelan/src/configuration_helper.cpp +++ b/apps/freelan/src/configuration_helper.cpp @@ -291,9 +291,7 @@ po::options_description get_fscp_options() ("fscp.never_contact", po::value >()->multitoken()->zero_tokens()->default_value(std::vector(), ""), "A network address to avoid when dynamically contacting hosts.") ("fscp.cipher_suite_capability", po::value >()->multitoken()->zero_tokens()->default_value(fscp::get_default_cipher_suites(), ""), "A cipher suite to allow.") ("fscp.elliptic_curve_capability", po::value >()->multitoken()->zero_tokens()->default_value(fscp::get_default_elliptic_curves(), ""), "A elliptic curve to allow.") -#ifdef USE_UPNP ("fscp.upnp_enabled", po::value()->default_value(true, "yes"), "Enable UPnP.") -#endif ; return result; diff --git a/apps/freelan/src/main.cpp b/apps/freelan/src/main.cpp index b798d909..9ccd4a48 100644 --- a/apps/freelan/src/main.cpp +++ b/apps/freelan/src/main.cpp @@ -185,17 +185,24 @@ bool parse_options(fscp::logger& logger, int argc, char** argv, cli_configuratio all_options.add(generic_options); po::options_description configuration_options("Configuration"); -#ifdef USE_MONGOOSE - configuration_options.add(get_server_options()); -#endif - configuration_options.add(get_client_options()); + po::options_description configuration_visible_options("Configuration"); + configuration_options.add(get_fscp_options()); configuration_options.add(get_security_options()); configuration_options.add(get_tap_adapter_options()); configuration_options.add(get_switch_options()); configuration_options.add(get_router_options()); + configuration_options.add(get_client_options()); + + configuration_visible_options.add(configuration_options); + + // do not show webserver option to user if mongoose is not compiled +#ifdef USE_MONGOOSE + configuration_visible_options.add(get_server_options()); +#endif + configuration_options.add(get_server_options()); - visible_options.add(configuration_options); + visible_options.add(configuration_visible_options); all_options.add(configuration_options); #ifdef WINDOWS @@ -406,7 +413,7 @@ bool parse_options(fscp::logger& logger, int argc, char** argv, cli_configuratio for (auto&& conf : configuration_files) { - logger(fscp::log_level::warning) << "- " << conf; + logger(fscp::log_level::warning) << "- " << conf; } } }