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

[tor-commits] [flashproxy/master] Remove dead code.



commit 5c0b0115af3ca875699e37493f187a92b1fa9d9a
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Thu Aug 30 15:18:47 2012 -0700

    Remove dead code.
---
 flashproxy-client |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/flashproxy-client b/flashproxy-client
index 74c2a74..dfa295e 100755
--- a/flashproxy-client
+++ b/flashproxy-client
@@ -147,20 +147,6 @@ def format_addr(addr):
 
 def safe_format_addr(addr):
     return safe_str(format_addr(addr))
-    host, port = addr
-    if not host:
-        return u":%d" % port
-    # Numeric IPv6 address?
-    try:
-        addrs = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM, socket.IPPROTO_TCP, socket.AI_NUMERICHOST)
-        af = addrs[0][0]
-    except socket.gaierror, e:
-        af = 0
-    if af == socket.AF_INET6:
-        return u"[%s]:%d" % (host, port)
-    else:
-        return u"%s:%d" % (host, port)
-
 
 
 def apply_mask_numpy(payload, mask_key):



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