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

[tor-commits] [flashproxy/master] Use safe_format_addr in flashproxy-reg-http.



commit 3baf3a5ca007354319084aebae4f3a74da3adde0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Oct 9 22:02:31 2013 -0700

    Use safe_format_addr in flashproxy-reg-http.
---
 flashproxy-reg-http |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/flashproxy-reg-http b/flashproxy-reg-http
index 975ebda..2a0c405 100755
--- a/flashproxy-reg-http
+++ b/flashproxy-reg-http
@@ -93,6 +93,9 @@ def format_addr(addr):
         result += u":%d" % port
     return result
 
+def safe_format_addr(addr):
+    return safe_str(format_addr(addr))
+
 options.facilitator_url = DEFAULT_FACILITATOR_URL
 options.remote_addr = (DEFAULT_REMOTE_ADDRESS, DEFAULT_REMOTE_PORT)
 
@@ -138,4 +141,4 @@ except Exception, e:
     sys.exit(1)
 http.close()
 
-print "Registered \"%s\" with %s." % (safe_str(spec), options.facilitator_url)
+print "Registered \"%s\" with %s." % (safe_format_addr(options.remote_addr), options.facilitator_url)

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