diff options
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 1669bcf355..4f10ed4774 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -187,7 +187,8 @@ router_pick_directory_server_impl(int requireother, int fascistfirewall, if (requireother && router_is_me(router)) continue; if (fascistfirewall) { - if (!smartlist_string_num_isin(get_options()->FirewallPorts, router->dir_port)) + if (!fascist_firewall_allows_address(get_options(),router->addr, + router->dir_port)) continue; } /* before 0.0.9rc5-cvs, only trusted dirservers served status info. */ @@ -230,7 +231,7 @@ router_pick_trusteddirserver_impl(int requireother, int fascistfirewall) !memcmp(me->identity_digest, d->digest, DIGEST_LEN)) continue; if (fascistfirewall) { - if (!smartlist_string_num_isin(get_options()->FirewallPorts, d->dir_port)) + if (!fascist_firewall_allows_address(get_options(),d->addr,d->dir_port)) continue; } smartlist_add(sl, d); |