hypercore-protocol
Advanced tools
Comparing version 7.7.1 to 7.8.0
@@ -370,2 +370,6 @@ const SHP = require('simple-hypercore-protocol') | ||
get remoteAddress () { | ||
return this._readableState.pipeTo && this._readableState.pipeTo.remoteAddress | ||
} | ||
get publicKey () { | ||
@@ -372,0 +376,0 @@ return this.state.publicKey |
{ | ||
"name": "hypercore-protocol", | ||
"version": "7.7.1", | ||
"version": "7.8.0", | ||
"description": "Stream that implements the hypercore protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ # hypercore-protocol | ||
{ | ||
encrypt: true, // set to false to disable encryption if you are already piping through a encrypted stream | ||
encrypted: true, // set to false to disable encryption if you are already piping through a encrypted stream | ||
timeout: 20000, // stream timeout. set to 0 or false to disable. | ||
@@ -96,2 +96,6 @@ keyPair: { publicKey, secretKey }, // use this keypair for the stream authentication | ||
#### `stream.remoteAddress` | ||
The remote peers IP if piped over a TCP or UTP stream. | ||
#### `const bool = stream.remoteVerified(key)` | ||
@@ -98,0 +102,0 @@ |
39312
967
284