[tor-commits] [flashproxy/master] Don't use a guessed client address in the facilitator proper.
dcf at torproject.org
dcf at torproject.org
Thu Dec 20 02:33:53 UTC 2012
commit dace58f13fca4282d7086743043fb55908c798f0
Author: David Fifield <david at bamsoftware.com>
Date: Wed Dec 19 18:32:19 2012 -0800
Don't use a guessed client address in the facilitator proper.
The CGI should guess the remote IP address, but when the CGI talks to
the facilitator daemon the remote address will always be localhost. This
was left over from the split of the facilitator into a CGI and a
backend.
---
facilitator/facilitator | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/facilitator/facilitator b/facilitator/facilitator
index bc47281..6459034 100755
--- a/facilitator/facilitator
+++ b/facilitator/facilitator
@@ -277,7 +277,7 @@ class Handler(SocketServer.StreamRequestHandler):
# FROM
try:
- reg = Reg.parse(client_spec, self.client_address[0])
+ reg = Reg.parse(client_spec)
except ValueError, e:
log(u"syntax error in %s: %s" % (safe_str(repr(client_spec)), safe_str(repr(str(e)))))
self.send_error()
More information about the tor-commits
mailing list