summaryrefslogtreecommitdiff
path: root/src/app/config/resolve_addr.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-06-30 12:12:04 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-06-30 12:12:04 -0400
commit6f1423cb57b35525babb08fe317df126f7363b46 (patch)
tree2ff3204e0e4001b77a1c8d23d0257000d383ce73 /src/app/config/resolve_addr.c
parenta8b8a1ee99fa843a5937b4d2a5973c444a4311e0 (diff)
downloadtor-6f1423cb57b35525babb08fe317df126f7363b46.tar.gz
tor-6f1423cb57b35525babb08fe317df126f7363b46.zip
addr: Continue trying all Address options on resolve failure
When going over all Address lines from the configuration, continue to attempt resolving other lines if one fails. Before that, we would bail right away and never noticed the other Address lines. Fixed in #33235 Related to #33233 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/app/config/resolve_addr.c')
-rw-r--r--src/app/config/resolve_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c
index 61662c340f..9c208efea3 100644
--- a/src/app/config/resolve_addr.c
+++ b/src/app/config/resolve_addr.c
@@ -212,7 +212,7 @@ get_address_from_config(const or_options_t *options, int warn_severity,
/* Hostname that can't be resolved, this is a fatal error. */
log_fn(warn_severity, LD_CONFIG,
"Could not resolve local Address '%s'. Failing.", cfg->value);
- return FN_RET_BAIL;
+ continue;
}
}