peer: minor style fix.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
29746b5164
commit
9bec16ca49
@ -348,7 +348,8 @@ Peer.prototype._handleGetAddr = function handleGetAddr() {
|
|||||||
// '0000:0000:0000:0000:0000:xxxx:xxxx:ffff'
|
// '0000:0000:0000:0000:0000:xxxx:xxxx:ffff'
|
||||||
|
|
||||||
peers = peers.map(function(peer) {
|
peers = peers.map(function(peer) {
|
||||||
if (!peer.socket || !peer.socket.remoteAddress) return;
|
if (!peer.socket || !peer.socket.remoteAddress)
|
||||||
|
return;
|
||||||
return {
|
return {
|
||||||
host: peer.socket.remoteAddress,
|
host: peer.socket.remoteAddress,
|
||||||
port: peer.socket.remotePort || 8333
|
port: peer.socket.remotePort || 8333
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user