File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,6 @@ String DNSServer::getDomainNameWithoutWwwPrefix()
175
175
176
176
void DNSServer::replyWithIP ()
177
177
{
178
- if (_buffer == NULL ) return ;
179
-
180
178
_udp.beginPacket (_udp.remoteIP (), _udp.remotePort ());
181
179
182
180
// Change the type of message to a response and set the number of answers equal to
@@ -215,12 +213,11 @@ void DNSServer::replyWithIP()
215
213
216
214
void DNSServer::replyWithCustomCode ()
217
215
{
218
- if (_buffer == NULL ) return ;
219
216
_dnsHeader->QR = DNS_QR_RESPONSE;
220
217
_dnsHeader->RCode = (unsigned char )_errorReplyCode;
221
218
_dnsHeader->QDCount = 0 ;
222
219
223
220
_udp.beginPacket (_udp.remoteIP (), _udp.remotePort ());
224
- _udp.write (_buffer , sizeof (DNSHeader));
221
+ _udp.write (( unsigned char *)_dnsHeader , sizeof (DNSHeader));
225
222
_udp.endPacket ();
226
223
}
You can’t perform that action at this time.
0 commit comments