diff options
author | Daniel Pinto <danielpinto52@gmail.com> | 2021-03-28 03:56:31 +0100 |
---|---|---|
committer | Daniel Pinto <danielpinto52@gmail.com> | 2021-03-28 03:56:31 +0100 |
commit | ce60454afd4b3792b2dc3bf3ed68948bb52fe49a (patch) | |
tree | cca4050e519cb3c7c8291aef4c55c80bcd104c67 /src/app/main/ntmain.c | |
parent | 6c14f9076f80f7749543841d47a032d9a71bc6b6 (diff) | |
download | tor-ce60454afd4b3792b2dc3bf3ed68948bb52fe49a.tar.gz tor-ce60454afd4b3792b2dc3bf3ed68948bb52fe49a.zip |
Add long format name --torrc-file for command line option -f. #40324
Diffstat (limited to 'src/app/main/ntmain.c')
-rw-r--r-- | src/app/main/ntmain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/main/ntmain.c b/src/app/main/ntmain.c index 480fba8650..9f2f52fb2e 100644 --- a/src/app/main/ntmain.c +++ b/src/app/main/ntmain.c @@ -500,7 +500,8 @@ nt_service_command_line(int *using_default_torrc) if (!strcmp(backup_argv[i], "--options") || !strcmp(backup_argv[i], "-options")) { while (++i < backup_argc) { - if (!strcmp(backup_argv[i], "-f")) + if (!strcmp(backup_argv[i], "-f") || + !strcmp(backup_argv[i], "--torrc-file")) *using_default_torrc = 0; smartlist_add(sl, backup_argv[i]); } |