Updates to improve mDNS support #2

Open
Ghost wants to merge 4 commits from (deleted):master into master
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 44010b8729 - Show all commits

View File

@ -143,6 +143,10 @@ pdns.unpack = function (ab) {
total += 2;
q.byteLength = total - ototal;
// mDNS uses the MS bit of class to request a unicast response
q.unicastResponse = (q.class & 0x8000) !== 0;
q.class &= 0x7fff;
q.className = classes[q.class];
q.typeName = types[q.type];