1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Enable IPv6 for ESP8266 and Raspberry pi pico w (RP2040) (#4759)

This commit is contained in:
Jimmy Hedman
2023-09-12 22:05:02 +02:00
committed by GitHub
parent fc354eec0e
commit dadbc1aefa
9 changed files with 41 additions and 34 deletions

View File

@@ -13,8 +13,7 @@ namespace mdns {
void MDNSComponent::setup() {
this->compile_records_();
network::IPAddress addr = network::get_ip_address();
MDNS.begin(this->hostname_.c_str(), (uint32_t) addr);
MDNS.begin(this->hostname_.c_str());
for (const auto &service : this->services_) {
// Strip the leading underscore from the proto and service_type. While it is