diff --git a/server/proxy/freerdp_proxy.c b/server/proxy/freerdp_proxy.c index e7e6f2d6f..3b348d094 100644 --- a/server/proxy/freerdp_proxy.c +++ b/server/proxy/freerdp_proxy.c @@ -82,9 +82,12 @@ static BOOL is_all_required_modules_loaded(proxyConfig* config) int main(int argc, char* argv[]) { proxyConfig* config = NULL; - const char* config_path = "config.ini"; + char* config_path = "config.ini"; int status = -1; + if (argc >= 2) + config_path = argv[1]; + pf_server_register_signal_handlers(); config = pf_server_config_load(config_path);