mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
server: proxy: use config path from argv if provided
This commit is contained in:
committed by
akallabeth
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);
|
||||
|
||||
Reference in New Issue
Block a user