mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
server: proxy: print configuration on startup
This commit is contained in:
parent
595f23b8fe
commit
cb833ed45c
@ -43,6 +43,7 @@ int main(int argc, char* argv[])
|
||||
if (!pf_server_config_load(cfg, config))
|
||||
goto fail;
|
||||
|
||||
pf_server_config_print(config);
|
||||
status = pf_server_start(config);
|
||||
fail:
|
||||
pf_server_config_free(config);
|
||||
|
@ -166,6 +166,35 @@ out:
|
||||
return ok;
|
||||
}
|
||||
|
||||
void pf_server_config_print(proxyConfig* config)
|
||||
{
|
||||
WLog_INFO(TAG, "Proxy configuration:");
|
||||
|
||||
CONFIG_PRINT_SECTION("Server");
|
||||
CONFIG_PRINT_STR(config, Host);
|
||||
CONFIG_PRINT_UINT16(config, Port);
|
||||
|
||||
if (!config->UseLoadBalanceInfo)
|
||||
{
|
||||
CONFIG_PRINT_SECTION("Target");
|
||||
CONFIG_PRINT_STR(config, TargetHost);
|
||||
CONFIG_PRINT_UINT16(config, TargetPort);
|
||||
}
|
||||
|
||||
CONFIG_PRINT_SECTION("Input");
|
||||
CONFIG_PRINT_BOOL(config, Keyboard);
|
||||
CONFIG_PRINT_BOOL(config, Mouse);
|
||||
|
||||
CONFIG_PRINT_SECTION("Security");
|
||||
CONFIG_PRINT_BOOL(config, NlaSecurity);
|
||||
CONFIG_PRINT_BOOL(config, TlsSecurity);
|
||||
CONFIG_PRINT_BOOL(config, RdpSecurity);
|
||||
|
||||
CONFIG_PRINT_SECTION("Channels");
|
||||
CONFIG_PRINT_BOOL(config, GFX);
|
||||
CONFIG_PRINT_BOOL(config, DisplayControl);
|
||||
}
|
||||
|
||||
void pf_server_config_free(proxyConfig* config)
|
||||
{
|
||||
pf_filters_unregister_all(config->Filters);
|
||||
|
@ -58,6 +58,7 @@ struct proxy_config
|
||||
typedef struct proxy_config proxyConfig;
|
||||
|
||||
BOOL pf_server_config_load(const char* path, proxyConfig* config);
|
||||
void pf_server_config_print(proxyConfig* config);
|
||||
void pf_server_config_free(proxyConfig* config);
|
||||
|
||||
#endif /* FREERDP_SERVER_PROXY_PFCONFIG_H */
|
||||
|
Loading…
Reference in New Issue
Block a user