server: proxy: use config path from argv if provided

This commit is contained in:
Kobi Mizrachi 2020-03-12 08:41:07 +02:00 committed by akallabeth
parent 6313cccb6e
commit 73445e1462

View File

@ -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);