summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-08-07 21:24:00 +0000
committerNick Mathewson <nickm@torproject.org>2005-08-07 21:24:00 +0000
commit01d07889507f7d6bdb80afc4e0bb6802b6fe2c8c (patch)
tree8d7422fe6566a23d7276939bb69f2d8fedd26335 /src/or/circuitbuild.c
parent9345323b1898bef16cab15811a183c2949a70b95 (diff)
downloadtor-01d07889507f7d6bdb80afc4e0bb6802b6fe2c8c.tar.gz
tor-01d07889507f7d6bdb80afc4e0bb6802b6fe2c8c.zip
Generalize FirewallPorts to FirewallIPs so I can run happily when locked in net 18.
svn:r4737
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0da796e412..7be062e25d 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1427,8 +1427,8 @@ choose_good_entry_server(cpath_build_state_t *state)
for (i=0; i < smartlist_len(rl->routers); i++) {
r = smartlist_get(rl->routers, i);
- if (!smartlist_string_num_isin(options->FirewallPorts, r->or_port))
- smartlist_add(excluded, r);
+ if (!fascist_firewall_allows_address(options,r->addr,r->or_port))
+ smartlist_add(excluded, r);
}
}
choice = router_choose_random_node(options->EntryNodes, options->ExcludeNodes,