Skip to content

Commit d9ca0c5

Browse files
committed
Workaround for issue node-pcap/node_pcap#263
1 parent 1fb4f44 commit d9ca0c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pcap.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ module.exports = function(RED) {
4848
msg.payload = decoded;
4949
} else if (node.output == "string") {
5050
msg.payload = '';
51-
if (decoded.payload !== null) {
51+
// workaround for https://github.com/node-pcap/node_pcap/pull/263
52+
if (decoded.payload.payload !== null) {
5253
msg.payload = String(decoded);
5354
}
5455
}

0 commit comments

Comments
 (0)