Skip to content

Conversation

@gudmundurh
Copy link
Contributor

Summary & Motivation

The code in IdGenerator that finds an IP for the local machine previously required the machine to have a valid hostname. This caused issue if a valid hostname was not specified, a problem I ran into on a new Mac.

This change iterates network interfaces instead of resolving the IP of the computer hostname. It also improves the logic, in that it guarantees that the resolved IP will never be a loopback address (such as 127.0.0.1).

Checklist

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

@gudmundurh gudmundurh requested a review from tjementum August 5, 2025 14:04
@gudmundurh gudmundurh self-assigned this Aug 5, 2025
@gudmundurh gudmundurh added the Bug Something isn't working label Aug 5, 2025
@gudmundurh gudmundurh moved this to 🏗 In Progress in Kanban board Aug 5, 2025
@gudmundurh gudmundurh moved this from 🏗 In Progress to 🔖 Ready in Kanban board Aug 5, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2025

@tjementum tjementum merged commit 892459e into main Aug 5, 2025
27 checks passed
@tjementum tjementum deleted the id-generator-remove-need-for-hostname branch August 5, 2025 14:09
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in Kanban board Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants