1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-23 03:54:33 +03:00

Added captive portal functionality

This commit is contained in:
Kristijan Novoselic
2015-06-19 20:21:19 +02:00
committed by Ivan Grokhotkov
parent bcdb580d7a
commit 3bbe9b56c6
5 changed files with 40 additions and 6 deletions

View File

@@ -54,7 +54,8 @@ void DNSServer::processNextRequest()
if (_dnsHeader->QR == DNS_QR_QUERY &&
_dnsHeader->OPCode == DNS_OPCODE_QUERY &&
requestIncludesOnlyOneQuestion() &&
getDomainNameWithoutWwwPrefix() == _domainName)
(_domainName == "*" || getDomainNameWithoutWwwPrefix() == _domainName)
)
{
replyWithIP();
}