Fix vhosts with gltds resolving
New gtlds without records set will resolve to 127.0.53.53 thanks to https://www.icann.org/news/announcement-2-2014-08-01-en, this commit fixes py-moo denying requests that resolve to 127.0.53.53
See merge request !1
def __is_resolvable(self, host):
try:
res = getaddrinfo(host, 80)
+ if res[0][4][0] == '127.0.53.53': # https://www.icann.org/news/announcement-2-2014-08-01-en
+ return (False, None, None)
return (True, res[0][4][0], host)
except gaierror, e:
return (False, None, None)