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:
committed by
Ivan Grokhotkov
parent
bcdb580d7a
commit
3bbe9b56c6
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user