[network] Fix logged use_address with MAC suffix and build it at runtime (#17432)

This commit is contained in:
J. Nick Koston
2026-07-07 02:07:34 -05:00
committed by GitHub
parent f823a23ea4
commit 3c2dad67f4
15 changed files with 154 additions and 34 deletions
+2 -1
View File
@@ -421,10 +421,11 @@ void WebServer::on_log(uint8_t level, const char *tag, const char *message, size
#endif
void WebServer::dump_config() {
char addr_buf[network::USE_ADDRESS_BUFFER_SIZE];
ESP_LOGCONFIG(TAG,
"Web Server:\n"
" Address: %s:%u",
network::get_use_address(), this->base_->get_port());
network::get_use_address_to(addr_buf), this->base_->get_port());
}
float WebServer::get_setup_priority() const { return setup_priority::WIFI - 1.0f; }