Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Fix DNS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehearn committed Dec 28, 2014
1 parent e855c4d commit 61a82a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/dns.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DnsServer(private val dnsName: Name, private val port: Int, private val cr
response.getHeader().setFlag(Flags.RD.toInt())
response.getHeader().setFlag(Flags.QR.toInt());
response.getHeader().setFlag(Flags.AA.toInt());
response.addRecord(message.getQuestion(), Section.QUESTION)
val ips = crawler.getSomePeers(30, -1)
for (ip in ips) {
val ipaddr = ip.first.getAddress()
Expand Down

0 comments on commit 61a82a7

Please sign in to comment.