summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-17 11:10:20 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-17 11:10:20 -0400
commit6382cd93cb99d1f5cff62bfe7759eca8a6948782 (patch)
treedb86f11cd30f2fa8314fc60bfd464ebcc3940dca /src/or/config.c
parent49c83dd21a7fe0432ad78061f3b41f4a5919340d (diff)
parentd6a2fec05ebcc39773a2f6666e1378410c64f047 (diff)
downloadtor-6382cd93cb99d1f5cff62bfe7759eca8a6948782.tar.gz
tor-6382cd93cb99d1f5cff62bfe7759eca8a6948782.zip
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 2e14ba69dc..03883601a6 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4344,8 +4344,10 @@ options_transition_affects_descriptor(const or_options_t *old_options,
!opt_streq(old_options->MyFamily, new_options->MyFamily) ||
!opt_streq(old_options->AccountingStart, new_options->AccountingStart) ||
old_options->AccountingMax != new_options->AccountingMax ||
+ old_options->AccountingRule != new_options->AccountingRule ||
public_server_mode(old_options) != public_server_mode(new_options) ||
- old_options->DirCache != new_options->DirCache)
+ old_options->DirCache != new_options->DirCache ||
+ old_options->AssumeReachable != new_options->AssumeReachable)
return 1;
return 0;
@@ -7006,9 +7008,8 @@ get_first_listener_addrport_string(int listener_type)
int
get_first_advertised_port_by_type_af(int listener_type, int address_family)
{
- if (!configured_ports)
- return 0;
- SMARTLIST_FOREACH_BEGIN(configured_ports, const port_cfg_t *, cfg) {
+ const smartlist_t *conf_ports = get_configured_ports();
+ SMARTLIST_FOREACH_BEGIN(conf_ports, const port_cfg_t *, cfg) {
if (cfg->type == listener_type &&
!cfg->server_cfg.no_advertise &&
(tor_addr_family(&cfg->addr) == address_family ||