summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-07 17:26:19 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-07 17:26:19 +0000
commit1b200de0ef4718a3c05226c24acd1662ce7f4b94 (patch)
tree631a696f0f437b85d410102a626cdac406045a29
parent5d90e24cfc7d2d5ba89cc07186de5169bedbb152 (diff)
downloadtor-1b200de0ef4718a3c05226c24acd1662ce7f4b94.tar.gz
tor-1b200de0ef4718a3c05226c24acd1662ce7f4b94.zip
r13304@catbus: nickm | 2007-06-07 13:25:37 -0400
Deprecate RedirectExits. svn:r10526
-rw-r--r--doc/tor.1.in1
-rw-r--r--src/or/connection_edge.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/tor.1.in b/doc/tor.1.in
index cf6a05a6ac..0589d45bcc 100644
--- a/doc/tor.1.in
+++ b/doc/tor.1.in
@@ -765,6 +765,7 @@ a Tor controller that handles directory publishing for you.
.LP
.TP
\fBRedirectExit \fR\fIpattern target\fP
+THIS OPTION IS DEPRECATED. It will go away in a future version of Tor.
Whenever an outgoing connection tries to connect to one of a given set
of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
The address
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index b3f7ab4a2d..2c274c94e0 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2562,6 +2562,11 @@ set_exit_redirects(smartlist_t *lst)
SMARTLIST_FOREACH(redirect_exit_list, exit_redirect_t *, p, tor_free(p));
smartlist_free(redirect_exit_list);
}
+ if (lst && smartlist_len(lst)) {
+ log_warn(LD_GENERAL,
+ "The RedirectExit option is deprecated; it will go away in a "
+ "future version of Tor.");
+ }
redirect_exit_list = lst;
}