Add more comments.

This commit is contained in:
Darko Poljak 2016-08-11 00:04:37 +02:00
parent dbcc94ab65
commit 45298b810c
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ class Config(object):
# (address, port, flow_info, scopeid) for AF_INET6
ip_addr = socket.getaddrinfo(
host, None, type=socket.SOCK_STREAM)[0][4][0]
# gethostbyaddr returns triple
# (hostname, aliaslist, ipaddrlist)
host_name = socket.gethostbyaddr(ip_addr)[0]
except socket.gaierror as e:
log.error("{}: {}".format(e[0], e[1]))