[mdns] Set up only after API is set up (#9000)

This commit is contained in:
Jesse Hills 2025-06-03 18:38:59 +01:00 committed by GitHub
parent 367017b352
commit 589f13f0f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,7 @@ class MDNSComponent : public Component {
#if (defined(USE_ESP8266) || defined(USE_RP2040)) && defined(USE_ARDUINO)
void loop() override;
#endif
float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
float get_setup_priority() const override { return setup_priority::AFTER_CONNECTION; }
void add_extra_service(MDNSService service) { services_extra_.push_back(std::move(service)); }