mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Fix debug provision for DNSServer (#5329)
This commit is contained in:
parent
e948ad1999
commit
055748ff6f
@ -2,6 +2,11 @@
|
||||
#include <lwip/def.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
#ifdef DEBUG_ESP_PORT
|
||||
#define DEBUG_OUTPUT DEBUG_ESP_PORT
|
||||
#else
|
||||
#define DEBUG_OUTPUT Serial
|
||||
#endif
|
||||
|
||||
DNSServer::DNSServer()
|
||||
{
|
||||
@ -165,7 +170,7 @@ void DNSServer::replyWithIP(uint8_t* buffer, size_t packetSize)
|
||||
_udp.endPacket();
|
||||
|
||||
#ifdef DEBUG_ESP_DNS
|
||||
DEBUG_ESP_PORT.printf("DNS responds: %s for %s\n",
|
||||
DEBUG_OUTPUT.printf("DNS responds: %s for %s\n",
|
||||
IPAddress(_resolvedIP).toString().c_str(), getDomainNameWithoutWwwPrefix(buffer, packetSize).c_str() );
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user