summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 32b707ed59..71654543c6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1066,7 +1066,8 @@ config_get_commandlines(int argc, char **argv, config_line_t **result)
!strcmp(argv[i],"--verify-config")) {
i += 1; /* command-line option. ignore it. */
continue;
- } else if (!strcmp(argv[i],"--nt-service")) {
+ } else if (!strcmp(argv[i],"--nt-service") ||
+ !strcmp(argv[i],"-nt-service")) {
i += 1;
continue;
}