diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-02-13 21:17:20 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2006-02-13 21:17:20 +0000 |
commit | 5eea6c76df83ab8891dba2af6838c6a5dc512e23 (patch) | |
tree | 9ab9c2a7d7576b79887fe68f096d5fd8a6f54b1d /src/or/circuitbuild.c | |
parent | d38f5fe5cdb056aea82c11c7dc7d614d1008dca8 (diff) | |
download | tor-5eea6c76df83ab8891dba2af6838c6a5dc512e23.tar.gz tor-5eea6c76df83ab8891dba2af6838c6a5dc512e23.zip |
Split ReachableAddresses into ReachableDirAddresses and ReachableORAddresses
svn:r6009
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index c007fe168a..2f878b740a 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1518,14 +1518,14 @@ choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state) smartlist_add(excluded, r); routerlist_add_family(excluded, r); } - if (firewall_is_fascist()) { + if (firewall_is_fascist_or()) { /* exclude all ORs that listen on the wrong port */ routerlist_t *rl = router_get_routerlist(); int i; for (i=0; i < smartlist_len(rl->routers); i++) { r = smartlist_get(rl->routers, i); - if (!fascist_firewall_allows_address(r->addr,r->or_port)) + if (!fascist_firewall_allows_address_or(r->addr,r->or_port)) smartlist_add(excluded, r); } } @@ -1717,8 +1717,8 @@ entry_is_live(entry_guard_t *e, int need_uptime, int need_capacity) return NULL; if (router_is_unreliable(r, need_uptime, need_capacity, 0)) return NULL; - if (firewall_is_fascist() && - !fascist_firewall_allows_address(r->addr,r->or_port)) + if (firewall_is_fascist_or() && + !fascist_firewall_allows_address_or(r->addr,r->or_port)) return NULL; return r; } |