diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-27 02:25:34 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-27 02:25:34 +0000 |
commit | 6f08d121d96be29c2ce2d9ef9df4416141651951 (patch) | |
tree | 91c4acf09b72156d35b9bf259c2e5b48b968a14a /src/or/router.c | |
parent | 74d35c8027937fe8dac031bf76e31a017d4fa81f (diff) | |
download | tor-6f08d121d96be29c2ce2d9ef9df4416141651951.tar.gz tor-6f08d121d96be29c2ce2d9ef9df4416141651951.zip |
Refactor and consolidate addr/exit policies into a new policies.c.
Fix some minor bugs and memory leaks along the way.
svn:r6246
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/router.c b/src/or/router.c index 83adc82ace..f1d469e9fd 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -722,7 +722,7 @@ router_compare_to_my_exit_policy(connection_t *conn) if (!conn->addr) return -1; - return router_compare_addr_to_addr_policy(conn->addr, conn->port, + return compare_addr_to_addr_policy(conn->addr, conn->port, desc_routerinfo->exit_policy) != ADDR_POLICY_ACCEPTED; } @@ -835,8 +835,8 @@ router_rebuild_descriptor(int force) if (options->BandwidthRate > options->MaxAdvertisedBandwidth) ri->bandwidthrate = (int)options->MaxAdvertisedBandwidth; - config_parse_exit_policy(options->ExitPolicy, &ri->exit_policy, - options->ExitPolicyRejectPrivate); + policies_parse_exit_policy(options->ExitPolicy, &ri->exit_policy, + options->ExitPolicyRejectPrivate); if (desc_routerinfo) { /* inherit values */ ri->is_valid = desc_routerinfo->is_valid; |