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 _at_@ -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-request_at_mirrorbrain.orgReceived on Thu Jan 23 2014 - 21:42:41 GMT
This archive was generated by hypermail 2.3.0 : Thu Jan 23 2014 - 21:47:03 GMT