mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-21 21:01:52 +00:00
fix exception name and add 0.0.0.0 to localhost list
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2941 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
99c0382781
commit
b482d35656
1 changed files with 3 additions and 2 deletions
|
|
@ -300,6 +300,7 @@ class Resolver(object):
|
|||
'localhost',
|
||||
'loopback',
|
||||
'127.0.0.1',
|
||||
'0.0.0.0',
|
||||
'::1',
|
||||
'ip6-localhost',
|
||||
'ip6-loopback',
|
||||
|
|
@ -738,5 +739,5 @@ def zone_for_name(name, rdclass=linkcheck.dns.rdataclass.IN,
|
|||
except (linkcheck.dns.resolver.NXDOMAIN, linkcheck.dns.resolver.NoAnswer):
|
||||
try:
|
||||
name = name.parent()
|
||||
except NoParent:
|
||||
raise NoRootSoa
|
||||
except linkcheck.dns.name.NoParent:
|
||||
raise NoRootSOA
|
||||
|
|
|
|||
Loading…
Reference in a new issue