blind-peer 2.7.14 → 2.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +7 -0
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -127,6 +127,13 @@ const cmd = command('blind-peer',
|
|
|
127
127
|
const key = idEnc.normalize(peerInfo.publicKey)
|
|
128
128
|
logger.debug(`Opened connection to ${key}`)
|
|
129
129
|
conn.on('close', () => logger.debug(`Closed connection to ${key}`))
|
|
130
|
+
conn.on('error', (err) => {
|
|
131
|
+
if (err.code === 'ECONNRESET') {
|
|
132
|
+
logger.debug(`Connection error with ${key}: ${err.stack}`)
|
|
133
|
+
return
|
|
134
|
+
}
|
|
135
|
+
logger.info(`Connection error with ${key}: ${err.stack}`)
|
|
136
|
+
})
|
|
130
137
|
})
|
|
131
138
|
}
|
|
132
139
|
|