From 0dabcba530efe7596ade323a0b691a819959755d Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Tue, 26 Sep 2023 12:55:13 +0200 Subject: [PATCH] Fix #42 --dc-list crashes on ldap with logging enabled --- nxc/protocols/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/protocols/ldap.py b/nxc/protocols/ldap.py index 6f1eac2f..3bb613a5 100644 --- a/nxc/protocols/ldap.py +++ b/nxc/protocols/ldap.py @@ -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: