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

[tor-commits] [flashproxy/master] Use the same connector as in master branch.



commit e8f3ca392f37f326dac975a6827a9d4e71eb6c50
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Jun 11 12:29:17 2011 -0700

    Use the same connector as in master branch.
    
    Instead of coding different default ports, just document the
    command-line parameters you need to use to make the difference.
---
 connector.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/connector.py b/connector.py
index 731fa19..27fff61 100755
--- a/connector.py
+++ b/connector.py
@@ -12,8 +12,8 @@ import time
 import urllib
 import xml.sax.saxutils
 
-DEFAULT_REMOTE_ADDRESS = "127.0.0.1"
-DEFAULT_REMOTE_PORT = 9002
+DEFAULT_REMOTE_ADDRESS = "0.0.0.0"
+DEFAULT_REMOTE_PORT = 9000
 DEFAULT_LOCAL_ADDRESS = "127.0.0.1"
 DEFAULT_LOCAL_PORT = 9001
 DEFAULT_FACILITATOR_PORT = 9002
@@ -281,7 +281,7 @@ def register():
     spec = format_addr((None, options.remote_addr[1]))
     log(u"Registering \"%s\" with %s." % (spec, format_addr(options.facilitator_addr)))
     http = httplib.HTTPConnection(*options.facilitator_addr)
-    http.request("POST", "/", urllib.urlencode({"client": spec}), {"Content-Type":"application/x-www-form-urlencoded"})
+    http.request("POST", "/", urllib.urlencode({"client": spec}))
     http.close()
     return True
 



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