summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-25 21:46:21 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-25 21:46:21 +0000
commit3fbb292bfff2765c4e541763e4e40e068e55e4ab (patch)
treed08410be5b47a1a5558a053458ee54b846e6ad67 /src/or/control.c
parent5c670a186c1f45a2ddfcab00c065f994d8a888f7 (diff)
downloadtor-3fbb292bfff2765c4e541763e4e40e068e55e4ab.tar.gz
tor-3fbb292bfff2765c4e541763e4e40e068e55e4ab.zip
r9389@Kushana: nickm | 2006-10-25 17:46:16 -0400
Add a CLEARDNSCACHE signal to clear the client-side DNS cache. svn:r8829
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 60a233211d..036323d2b4 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -1283,6 +1283,8 @@ handle_control_signal(control_connection_t *conn, uint32_t len,
sig = SIGTERM;
else if (!strcasecmp(s, "NEWNYM"))
sig = SIGNEWNYM;
+ else if (!strcasecmp(s, "CLEARDNSCACHE"))
+ sig = SIGCLEARDNSCACHE;
else {
connection_printf_to_buf(conn, "552 Unrecognized signal code \"%s\"\r\n",
s);