commit f99c686d4a6ab7296a5023338944b1b88d8a48bc
Author: David Fifield <[email protected]>
Date: Wed Jul 4 05:10:32 2012 -0700
Factor out client reg sending.
---
facilitator.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/facilitator.py b/facilitator.py
index 040d189..be3436c 100755
--- a/facilitator.py
+++ b/facilitator.py
@@ -201,10 +201,9 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
if reg:
log(u"proxy %s gets %s, relay %s (now %d)" %
(safe_str(proxy_addr_s), safe_str(unicode(reg)),
options.relay_spec, len(REGS)))
- self.send_client(reg)
else:
log(u"proxy %s gets none" % safe_str(proxy_addr_s))
- self.send_client(None)
+ self.send_client(reg)
def do_POST(self):
client_addr_s = format_addr(self.client_address)
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits