summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-09-13 16:25:48 +0300
committerNick Mathewson <nickm@torproject.org>2014-09-22 14:18:00 -0400
commitc735b60e4ce2d2806d8cc285d7b9b2795f9732b4 (patch)
tree7af91e5610ba51a0cdbf0eb64cef0772d7389c12 /src/or/router.c
parentf8f0cb0443c0709454c9223f25266ec1b0c464b8 (diff)
downloadtor-c735b60e4ce2d2806d8cc285d7b9b2795f9732b4.tar.gz
tor-c735b60e4ce2d2806d8cc285d7b9b2795f9732b4.zip
New API for policies_parse_exit_policy().
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 7bcc02ef39..4af8d262f9 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1855,10 +1855,8 @@ router_rebuild_descriptor(int force)
/* DNS is screwed up; don't claim to be an exit. */
policies_exit_policy_append_reject_star(&ri->exit_policy);
} else {
- policies_parse_exit_policy(options->ExitPolicy, &ri->exit_policy,
- options->IPv6Exit,
- options->ExitPolicyRejectPrivate,
- ri->addr, !options->BridgeRelay);
+ policies_parse_exit_policy_from_options(options,ri->addr,
+ &ri->exit_policy);
}
ri->policy_is_reject_star =
policy_is_reject_star(ri->exit_policy, AF_INET) &&