From 574f234dc79edc9fb392b10ac6fdef0bd2d7ac91 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 16 Mar 2007 03:00:57 +0000 Subject: backport r9817 and r9823, and bump to 0.1.2.11-rc. svn:r9836 --- src/or/control.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/or') diff --git a/src/or/control.c b/src/or/control.c index bfe6281570..7b69b42ad4 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1142,7 +1142,10 @@ handle_control_setevents(control_connection_t *conn, uint32_t len, event_code = EVENT_STATUS_SERVER; else if (!strcasecmp(ev, "GUARD")) event_code = EVENT_GUARD; - else if (!strcasecmp(ev, "STREAM_BW")) + else if (!strcasecmp(ev, "GUARDS")) { + /* XXX tolerate buggy spec in 0.1.2.5-alpha through 0.1.2.10-rc */ + event_code = EVENT_GUARD; + } else if (!strcasecmp(ev, "STREAM_BW")) event_code = EVENT_STREAM_BANDWIDTH_USED; else { connection_printf_to_buf(conn, "552 Unrecognized event \"%s\"\r\n", -- cgit v1.2.3-54-g00ecf