Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide connection source address hint to advise udp binding #1022

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

koush
Copy link
Contributor

@koush koush commented Feb 4, 2024

Currently HAP-NodeJS doesn't provide the incoming address for the HAP connection. This means that the UDP video must bind to 0.0.0.0, and can be problematic. For example, wifi and ethernet may both be connected to the LAN. Binding to all addresses and sending data may result in the video being sent over wifi.

Currently getting around this by requiring users to select their LAN IP addresses, and guessing which address to use based on ipv4 and ipv6. This doesn't really work if multiple ipv4 addresses are advertised on different networks.

Providing the source address for the connection in addition to the target would be ideal here.

Copy link
Member

@Supereg Supereg left a comment

Choose a reason for hiding this comment

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

Looks good thank you 🚀

@DragonWork
Copy link

So this fairly minor but effective PR is dangling for a month because two (deprecated node v14 and v16) checks are blocking the merging? Can someone manually merge please?

@hjdhjd hjdhjd merged commit 791c361 into homebridge:latest Mar 9, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants