Fix #42 --dc-list crashes on ldap with logging enabled

main
Alexander Neff 2023-09-26 12:55:13 +02:00
parent 87a2efac23
commit 0dabcba530
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ class ldap(connection):
try:
ip_address = socket.gethostbyname(name.split(".")[0])
if ip_address != True and name != "":
self.logger.highlight(f"{name} =", ip_address)
self.logger.highlight(f"{name} = {colored(ip_address, host_info_colors[0])}")
except socket.gaierror:
self.logger.fail(f"{name} = Connection timeout")
except Exception as e: