-
Notifications
You must be signed in to change notification settings - Fork 958
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
Ensure the MQTT address is an IPv4 before determining it's private #5081
Ensure the MQTT address is an IPv4 before determining it's private #5081
Conversation
…determining it's private.
@jp-bennett @fifieldt Next iteration is here. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, is it worth checking the length?
We could. I opted not to initially for the same reason of just checking for digits and dots: even if it's not valid, a connection won't be made. It's easy enough though, so I can if you want. |
Ok, length check added. 😅 |
I have to add a non-standard port number (like 192.168.1.84:2883) and the detection is not detecting it as a private IP anymore. |
@CamFlyerCH yep, I realized that earlier. The fix is in #5084. |
Continuing from #5072, ensuring no sneaking subdomains make an address appear like a private IPv4.
This is also now tested. :)