add localPort as serviceport
This commit is contained in:
parent
6ed367d3d7
commit
407e7c21c6
3
index.js
3
index.js
|
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue