From 8ca9a0ae96583ee0f089c8e313f8a547f43183ef Mon Sep 17 00:00:00 2001 From: cottongin Date: Thu, 6 Aug 2026 01:39:17 -0400 Subject: [PATCH] fix: call configTime() in minimal WiFi path to initialize DNS resolver Without configTime(), the ESP32 DNS subsystem isn't properly initialized after WiFi connect, causing HTTPS hostname resolution to fail silently in the deep sleep wake path. The fix calls configTime() fire-and-forget (non-blocking, <1ms) which initializes DNS without the 5-second NTP wait. Co-authored-by: Cursor --- src/wifi_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wifi_manager.cpp b/src/wifi_manager.cpp index 8568ca6..37091a5 100644 --- a/src/wifi_manager.cpp +++ b/src/wifi_manager.cpp @@ -62,8 +62,10 @@ void WiFiManager::startStation(bool minimal) { WiFi.localIP().toString().c_str(), WiFi.RSSI()); if (minimal) { - // Deep sleep wake path: skip NTP/mDNS to minimize active time. - // System clock was already seeded from hardware RTC at boot. + // Deep sleep wake path: skip blocking NTP wait and mDNS to + // minimize active time. Still call configTime() to initialize + // the DNS resolver (required for HTTPS hostname resolution). + configTime(0, 0, "pool.ntp.org", "time.nist.gov"); return; }