Mask MS bit of class to indicate a unicast response to mDNS

这个提交包含在:
Simon Rogers 2018-03-01 17:09:52 +01:00
父节点 93d1c0f8e2
当前提交 44010b8729

查看文件

@ -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];