Updates to improve mDNS support #2

Ouvert
Ghost souhaite fusionner 4 révision(s) depuis (supprimé) : master vers master
Affiche uniquement les changements de la révision 44010b8729 - Afficher toutes les révisions

Voir le fichier

@ -143,6 +143,10 @@ pdns.unpack = function (ab) {
total += 2; total += 2;
q.byteLength = total - ototal; 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.className = classes[q.class];
q.typeName = types[q.type]; q.typeName = types[q.type];