server: proxy: use config path from argv if provided
@@ -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);
