-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix scrubDNS() #23886
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
base: development
Are you sure you want to change the base?
Fix scrubDNS() #23886
Conversation
|
I also had the issue of overwritten DNS servers with ipv4 only compiles, hence I added the extra ifdefs. |
|
What's the relation between |
|
You have probably issues since trying to use |
|
Yes, |
|
@Jason2866 tasmota-zbtest is the hostname of the ESP32. I never made any config nor any |
|
mDNS-log comes from support_network.ino: |
|
Ahh, right. It is added for Matter. |
To my understanding |
|
Ok, I will adjust my code accordingly. |
|
found a small error in the code, need to do another commit |
|
Please review |
|
You are right, this check is not needed if v6 is not compiled in. I changed the code to reflect this. |
|
Can someone please restart the CI checks? It failed because of a dependency timeout, not because of the code change. |
|
This PR has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions. |
Description:
There is an issue with
WiFiHelper::scrubDNS()where it saves invalid DNS-IPs (0.0.0.0). This is because the static cast fromIPAddresstoip_addr_tdoes not work correctly in the current version of the esp-idf framework. This PR fixes this. Also fixes the underlying issue of #23874Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass