Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure to record the actual ip object used to write the output buf…

…fer.
  • Loading branch information...
commit 3c9bb03aa7245495e7c4fc1be6aee0d5790324e7 1 parent 130c1b3
@wanderview authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  stream.js
View
3  stream.js
@@ -97,7 +97,10 @@ IpStream.prototype._reduce = function(msg, output, callback) {
IpStream.prototype._expand = function(ip, msg, output, callback) {
// TODO: fragment jumbo packets into multiple messages
+ // TODO: provide way to override dataLength on msg, but get IP addresses
+ // from default IP object?
ip.toBuffer(msg.data, msg.offset);
+ msg.ip = ip;
msg.offset += ip.length;
return msg;
};
Please sign in to comment.
Something went wrong with that request. Please try again.