-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove forced OTA DNS announce #3770
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
Conversation
0245248
to
7f2bc85
Compare
I agree that we should avoid overriding previously configured mDNS. But as it is, the change will break existing sketches which did just ArduinoOTA.begin. From the perspective of the user who just wants to use OTA, but doesn't care about mDNS, ArduinoOTA should take care of mDNS registration. How about adding a function to mDNS class to check if mDNS is configured, and then using it in ArduinoOTA? If not configured, then ArduinoOTA must call mDNS.begin, otherwise OTA will not work (Arduino IDE will not see the device on the network). Also suggest keeping 'setHostname'/'getHostname' function for compatibility with existing sketches. |
e6a70ef
to
a8b8234
Compare
a8b8234
to
a63a4f4
Compare
I rewrote the commit per your suggestion and added a check if the mDNS had already been started |
bd922bf
to
6a5c480
Compare
6a5c480
to
cb08593
Compare
cb08593
to
65456b6
Compare
65456b6
to
aea0d5a
Compare
@igrr I just rebased this. Should I do something more before it is merged? |
Thanks, the changes look good. This will be merged once 2.4.1 is released, which should happen very soon. |
Would be better if we could have OTA enabled without mDNS at all. |
aea0d5a
to
30778ea
Compare
@igrr I just rebased this. Should I do something more before it is merged? |
db72488
to
0ea48a0
Compare
0ea48a0
to
86e57f1
Compare
Thanks for your PR, but MDNS has been completely rewritten with this release, so this PR can't apply anymore without massive rework. I'll leave open for two weeks and come back after Feb 10 and see if there's interest from the original submitter. If not, will close then. |
duplicate #5494 which is already merged |
OTA should not force a DNS publication. This is not the job of the OTA server, and it interferes with previously configured DNS announcements.