add localPort as serviceport

This commit is contained in:
AJ ONeal 2018-05-31 05:13:27 -06:00
parent 6ed367d3d7
commit 407e7c21c6
1 changed files with 2 additions and 1 deletions

View File

@ -282,11 +282,12 @@ Packer.socketToAddr = function (socket) {
// tlsSocket.remoteAddress = remoteAddress; // causes core dump
// console.log(tlsSocket.remoteAddress);
var props = extractSocketProps(socket, [ 'remoteFamily', 'remoteAddress', 'remotePort' ]);
var props = extractSocketProps(socket, [ 'remoteFamily', 'remoteAddress', 'remotePort', 'localPort' ]);
return {
family: props.remoteFamily
, address: props.remoteAddress
, port: props.remotePort
, serviceport: props.localPort
};
};