@matterbridge/dgram 3.7.1-dev-20260324-9c29691 → 3.7.1-dev-20260326-40eef29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mdns.js +4 -4
- package/package.json +3 -3
package/dist/mdns.js
CHANGED
|
@@ -151,7 +151,7 @@ export class Mdns extends Multicast {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
if (this.filters.length === 0)
|
|
154
|
-
this.log.info(`Dgram mDNS server received a mDNS message from ${BLUE}${rinfo.family}${nf} ${BLUE}${rinfo.address}${nf}:${BLUE}${rinfo.port}${nf}`);
|
|
154
|
+
this.log.info(`Dgram mDNS server received a mDNS message (${msg.length} bytes) from ${BLUE}${rinfo.family}${nf} ${BLUE}${rinfo.address}${nf}:${BLUE}${rinfo.port}${nf}`);
|
|
155
155
|
try {
|
|
156
156
|
const result = this.decodeMdnsMessage(msg);
|
|
157
157
|
if (result.qr === 0) {
|
|
@@ -175,7 +175,7 @@ export class Mdns extends Multicast {
|
|
|
175
175
|
const foundInAnswers = result.answers?.some((a) => a.name.includes(filter) || a.data.includes(filter));
|
|
176
176
|
const foundInAdditionals = result.additionals?.some((a) => a.name.includes(filter) || a.data.includes(filter));
|
|
177
177
|
if (foundInQuestions || foundInAnswers || foundInAdditionals) {
|
|
178
|
-
this.log.info(`Dgram mDNS server received a mDNS message from ${BLUE}${rinfo.family}${nf} ${BLUE}${rinfo.address}${nf}:${BLUE}${rinfo.port}${nf}`);
|
|
178
|
+
this.log.info(`Dgram mDNS server received a mDNS message (${msg.length} bytes) from ${BLUE}${rinfo.family}${nf} ${BLUE}${rinfo.address}${nf}:${BLUE}${rinfo.port}${nf}`);
|
|
179
179
|
this.logMdnsMessage(result);
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
@@ -468,7 +468,7 @@ export class Mdns extends Multicast {
|
|
|
468
468
|
const query = Buffer.concat([header, ...questionBuffers]);
|
|
469
469
|
if (hasParameter('v') || hasParameter('verbose')) {
|
|
470
470
|
const decoded = this.decodeMdnsMessage(query);
|
|
471
|
-
this.logMdnsMessage(decoded, undefined,
|
|
471
|
+
this.logMdnsMessage(decoded, undefined, `Sending query mDNS message (${query.length} bytes)`);
|
|
472
472
|
}
|
|
473
473
|
this.socket.send(query, 0, query.length, this.multicastPort, this.multicastAddress, (error) => {
|
|
474
474
|
if (error) {
|
|
@@ -505,7 +505,7 @@ export class Mdns extends Multicast {
|
|
|
505
505
|
const response = Buffer.concat([header, ...answerBuffers]);
|
|
506
506
|
if (hasParameter('v') || hasParameter('verbose')) {
|
|
507
507
|
const decoded = this.decodeMdnsMessage(response);
|
|
508
|
-
this.logMdnsMessage(decoded, undefined,
|
|
508
|
+
this.logMdnsMessage(decoded, undefined, `Sending response mDNS message (${response.length} bytes)`);
|
|
509
509
|
}
|
|
510
510
|
this.socket.send(response, 0, response.length, this.multicastPort, this.multicastAddress, (error) => {
|
|
511
511
|
if (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/dgram",
|
|
3
|
-
"version": "3.7.1-dev-
|
|
3
|
+
"version": "3.7.1-dev-20260326-40eef29",
|
|
4
4
|
"description": "Matterbridge dgram library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"CHANGELOG.md"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@matterbridge/jest-utils": "3.7.1-dev-
|
|
65
|
-
"@matterbridge/utils": "3.7.1-dev-
|
|
64
|
+
"@matterbridge/jest-utils": "3.7.1-dev-20260326-40eef29",
|
|
65
|
+
"@matterbridge/utils": "3.7.1-dev-20260326-40eef29",
|
|
66
66
|
"node-ansi-logger": "3.2.0"
|
|
67
67
|
}
|
|
68
68
|
}
|