Author: poeml
Date: Thu Jan 23 22:42:37 2014
New Revision: 8338

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8338&view=rev
Log:
mb iplookup:
- fix socket.getaddrinfo() usage by using None instead of 0 for (not used) port
  value (issue #135)

Modified:
    trunk/mb/mb/asn.py

Modified: trunk/mb/mb/asn.py
URL: 
http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/asn.py?rev=8338&r1=8337&r2=8338&view=diff
==============================================================================
--- trunk/mb/mb/asn.py  (original)
+++ trunk/mb/mb/asn.py  Thu Jan 23 22:42:37 2014
@@ -17,7 +17,7 @@
         ips = []
         ip6s = []
         try:
-            for res in socket.getaddrinfo(s, 0):
+            for res in socket.getaddrinfo(s, None):
                 af, socktype, proto, canonname, sa = res
                 if ':' in sa[0]:
                     if sa[0] not in ip6s:




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
        unsubscribe
to the address mirrorbrain-commits-requ...@mirrorbrain.org

Reply via email to