diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-04-30 19:48:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-04-30 19:48:45 +0000 |
commit | e97a6dd01f76f5380d80a1b6061abd0b583a7aab (patch) | |
tree | f426737909447f87820c9cd65e9a39e3a3e3f4ee /src/or/control.c | |
parent | 0390a0499c3118743c7d727f0523b872f45dec0e (diff) | |
download | tor-e97a6dd01f76f5380d80a1b6061abd0b583a7aab.tar.gz tor-e97a6dd01f76f5380d80a1b6061abd0b583a7aab.zip |
r12587@catbus: nickm | 2007-04-30 15:47:39 -0400
Backport candidate: correctly set the purpose of routers that are inserted by the controller with purpose=controller.
svn:r10071
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index f965b7035a..9222220636 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1696,7 +1696,7 @@ get_purpose(char **string, int for_circuits, uint8_t *purpose) ROUTER_PURPOSE_GENERAL; else if (!strcmp(*string, "controller")) *purpose = for_circuits ? CIRCUIT_PURPOSE_CONTROLLER : - ROUTER_PURPOSE_GENERAL; + ROUTER_PURPOSE_CONTROLLER; else { /* not a recognized purpose */ return -1; } |