Skip to content

Commit

Permalink
remove condition
Browse files Browse the repository at this point in the history
Signed-off-by: XiaoliChan <[email protected]>
  • Loading branch information
XiaoliChan committed Apr 3, 2024
1 parent f5bb1fc commit 3f1fa69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nxc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,13 @@ def __init__(self, args, db, host):
dns_result = self.resolver(self.hostname)
if dns_result:
self.host, self.is_ipv6, self.is_link_local_ipv6 = dns_result["host"], dns_result["is_ipv6"], dns_result["is_link_local_ipv6"]
self.remoteHost = self.host
else:
return

if self.args.kerberos:
self.host = self.hostname

if not self.remoteHost:
self.remoteHost = self.host

self.remoteHost = self.host

self.logger.info(f"Socket info: host={self.host}, hostname={self.hostname}, remoteHost={self.remoteHost}, kerberos={self.kerberos}, ipv6={self.is_ipv6}, link-local ipv6={self.is_link_local_ipv6}")

Expand Down

0 comments on commit 3f1fa69

Please sign in to comment.