We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aaa3a0 commit 2747cb9Copy full SHA for 2747cb9
src/dns-server.ts
@@ -62,17 +62,15 @@ class DnsServer extends dns2.UDPServer {
62
console.log(`Multiple hosts in internal DNS for hostname ${question.name}:`, answers);
63
}
64
65
- if (answers) {
66
- answers.forEach((answer) => {
67
- response.answers.push({
68
- name: question.name,
69
- type: dns2.Packet.TYPE.A,
70
- class: dns2.Packet.CLASS.IN,
71
- ttl: 0,
72
- address: answer
73
- });
+ answers.forEach((answer) => {
+ response.answers.push({
+ name: question.name,
+ type: dns2.Packet.TYPE.A,
+ class: dns2.Packet.CLASS.IN,
+ ttl: 0,
+ address: answer
74
});
75
- }
+ });
76
77
sendResponse(response);
78
0 commit comments