diff options
author | Neel Chauhan <neel@neelc.org> | 2021-01-06 10:41:27 -0800 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2021-01-06 10:41:27 -0800 |
commit | 3d993d4d8569617acf8059a6d6f7702aaf41bba4 (patch) | |
tree | 5a0d2ae0343693619f7c314cfa08691a3ee7ddfb /src/app | |
parent | e7da6810346c0e141d67e67db8ff4a1bdaedf67f (diff) | |
download | tor-3d993d4d8569617acf8059a6d6f7702aaf41bba4.tar.gz tor-3d993d4d8569617acf8059a6d6f7702aaf41bba4.zip |
Do not require a valid torrc for
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c index bf2f49ead4..e6fde2d62f 100644 --- a/src/app/config/config.c +++ b/src/app/config/config.c @@ -4338,6 +4338,7 @@ find_torrc_filename(const config_line_t *cmd_arg, const config_line_t *p_index; const char *fname_opt = defaults_file ? "--defaults-torrc" : "-f"; const char *ignore_opt = defaults_file ? NULL : "--ignore-missing-torrc"; + const char *keygen_opt = "--keygen"; if (defaults_file) *ignore_missing_torrc = 1; @@ -4359,7 +4360,8 @@ find_torrc_filename(const config_line_t *cmd_arg, } *using_default_fname = 0; - } else if (ignore_opt && !strcmp(p_index->key,ignore_opt)) { + } else if ((ignore_opt && !strcmp(p_index->key, ignore_opt)) || + (keygen_opt && !strcmp(p_index->key, keygen_opt))) { *ignore_missing_torrc = 1; } } |