a number of compatibility improvements in resolver_ares and ares.pyx:
resolver_ares.py: - gethostbyname now handles '' (empty string) - getaddrinfo now handles integer ports of type string, e.g "25". Thanks to kconor. - getaddrinfo now converts UnicodeEncodeError into error('Int or String expected') - getaddrinfo now uses the lowest 16 bits of passed port integer, to mimic socketmodule.c - getnameinfo calls getaddrinfo to process arguments, similar to socketmodule.c - gethostbyaddr also uses getaddrinfo to process arguments ares.pyx: - added InvalidIP exception - gethostbyaddr and getnameinfo now raise InvalidIP immediatelly instead of passing it through callback
Showing
Please register or sign in to comment