feat: p2p addrs situation (#82)

* chore: update gitignore

* chore: update CI configs

* chore: update deps

* chore: small refactor
This commit is contained in:
David Dias
2017-09-03 10:01:16 +01:00
committed by GitHub
parent ef45cc9a34
commit a54bb83657
6 changed files with 38 additions and 20 deletions

View File

@ -4,7 +4,7 @@ const multiaddr = require('multiaddr')
const Address6 = require('ip-address').Address6
module.exports = (socket) => {
var mh
let mh
if (socket.remoteFamily === 'IPv6') {
var addr = new Address6(socket.remoteAddress)

View File

@ -14,6 +14,7 @@ const getMultiaddr = require('./get-multiaddr')
const IPFS_CODE = 421
const CLOSE_TIMEOUT = 2000
function noop () {}
module.exports = (handler) => {