mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-02 06:00:39 +00:00
add localhost to local interface list
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3090 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
1d724a034a
commit
aeb698cbec
1 changed files with 1 additions and 0 deletions
|
|
@ -352,6 +352,7 @@ class Resolver(object):
|
|||
def read_local_hosts (self):
|
||||
self.add_addrinfo(socket.gethostname())
|
||||
# add system specific hosts for all enabled interfaces
|
||||
self.add_addrinfo('localhost', interface=True)
|
||||
for addr in self.read_local_ifaddrs():
|
||||
self.add_addrinfo(addr, interface=True)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue