Skip to content

Commit

Permalink
chore: close ip socket
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoppenheimer committed Oct 11, 2023
1 parent 556a27a commit 4df60c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def get_hostname_mapping(self) -> dict[str, str]:
s.settimeout(0)
s.connect(("10.10.10.10", 1))
ip = s.getsockname()[0]
s.close()

return {"hostname": hostname, "fqdn": fqdn, "ip": ip}

Expand Down

0 comments on commit 4df60c1

Please sign in to comment.