소스 검색

Keeping up with changes to reply code to ESPAsyncDNSServer

See https://github.com/devyte/ESPAsyncDNSServer/pull/2
Debashish Sahu 6 년 전
부모
커밋
00d837cee8
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      ESPAsyncWiFiManager.cpp

+ 4 - 0
ESPAsyncWiFiManager.cpp

@@ -115,7 +115,11 @@ void AsyncWiFiManager::setupConfigPortal() {
   DEBUG_WM(WiFi.softAPIP());
 
   /* Setup the DNS server redirecting all the domains to the apIP */
+  #ifdef USE_EADNS
+  dnsServer->setErrorReplyCode(AsyncDNSReplyCode::NoError);
+  #else
   dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
+  #endif
   dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
 
   setInfo();