Skip to content

Conversation

Imperiopolis
Copy link
Member

this builds on top of #6 preventing the need for rebooting the pi

@jellysquider

@Imperiopolis Imperiopolis changed the base branch from jellysquider/dynamic-ip to main July 10, 2025 15:24
Copy link

@elg0nz elg0nz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

ipStrings = append(ipStrings, ip.String())
}

localInternetAddressesMutex.Lock()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it possibly might be better to only take a read lock here until we know things have changed, since we're polling pretty regularly, but I'd guess in practice it mostly doesn't make a difference – we're not exactly dealing with lots of concurrent requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants