| 65 | } // namespace |
| 66 | |
| 67 | bool DnsServer::start(uint16_t port, const String& domainName, const IpAddress& resolvedIP) |
| 68 | { |
| 69 | this->port = port; |
| 70 | this->domainName = domainName; |
| 71 | this->resolvedIP = resolvedIP; |
| 72 | downcaseAndRemoveWwwPrefix(this->domainName); |
| 73 | return listen(this->port) == 1; |
| 74 | } |
| 75 | |
| 76 | void DnsServer::onReceive(pbuf* buf, IpAddress remoteIP, uint16_t remotePort) |
| 77 | { |
no test coverage detected