[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Don't use a guessed client address in the facilitator proper.



commit dace58f13fca4282d7086743043fb55908c798f0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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()

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits