@@ -182,7 +182,7 @@ char* ESPAsync_WiFiManager::getRFC952_hostname(const char* iHostname)
182
182
183
183
// ////////////////////////////////////////
184
184
185
- ESPAsync_WiFiManager::ESPAsync_WiFiManager (AsyncWebServer * webserver, DNSServer *dnsserver, const char *iHostname)
185
+ ESPAsync_WiFiManager::ESPAsync_WiFiManager (AsyncWebServer * webserver, AsyncDNSServer *dnsserver, const char *iHostname)
186
186
{
187
187
188
188
server = webserver;
@@ -328,7 +328,7 @@ void ESPAsync_WiFiManager::setupConfigPortal()
328
328
#endif
329
329
330
330
if (!dnsServer)
331
- dnsServer = new DNSServer ;
331
+ dnsServer = new AsyncDNSServer ;
332
332
#endif // ( USING_ESP32_S2 || USING_ESP32_C3 )
333
333
334
334
// optional soft ip config
@@ -344,7 +344,7 @@ void ESPAsync_WiFiManager::setupConfigPortal()
344
344
/* Setup the DNS server redirecting all the domains to the apIP */
345
345
if (dnsServer)
346
346
{
347
- dnsServer->setErrorReplyCode (DNSReplyCode ::NoError);
347
+ dnsServer->setErrorReplyCode (AsyncDNSReplyCode ::NoError);
348
348
349
349
// DNSServer started with "*" domain name, all DNS requests will be passsed to WiFi.softAPIP()
350
350
if (! dnsServer->start (DNS_PORT, " *" , WiFi.softAPIP ()))
@@ -756,9 +756,6 @@ void ESPAsync_WiFiManager::criticalLoop()
756
756
757
757
void ESPAsync_WiFiManager::safeLoop ()
758
758
{
759
- #ifndef USE_EADNS
760
- dnsServer->processNextRequest ();
761
- #endif
762
759
}
763
760
764
761
// /////////////////////////////////////////////////////////
@@ -807,10 +804,7 @@ bool ESPAsync_WiFiManager::startConfigPortal(char const *apName, char const *ap
807
804
#if ( USING_ESP32_S2 || USING_ESP32_C3 )
808
805
// Fix ESP32-S2 issue with WebServer (https://github.com/espressif/arduino-esp32/issues/4348)
809
806
delay (1 );
810
- #else
811
- // DNS
812
- if (dnsServer)
813
- dnsServer->processNextRequest ();
807
+ #else
814
808
815
809
//
816
810
// we should do a scan every so often here and
0 commit comments