server: proxy: use config path from argv if provided
This commit is contained in:
parent
6313cccb6e
commit
73445e1462
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user