Set up a private network via putting a swarm.key in go-ipfs config file ( .ipfs/ ). get address1
Set up another go-ipfs node(node2) with the same swarm.key. In node2 use ipfs swarm connect address1. success.
Use the latest version of js-ipfs (currently 0.32.3) . put the same swarm.key in .jsipfs/ . node src\cli\bin.js daemon. it won't print the same message as go-ipfs do
> Swarm is limited to private network of peers with the swarm key
> Swarm key fingerprint: blablabla
js-ipfs\src\cli\commands\swarm\connect.js:20
throw err
^
Error: Error: stream ended with:43 but wanted:75
at parseError (\js-ipfs\node_modules\ipfs-api\src\utils\send-request.js:17:17)
at ClientRequest.<anonymous> (\js-ipfs\node_modules\ipfs-api\src\utils\send-request.js:47:14)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:543:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:112:17)
at Socket.socketOnData (_http_client.js:440:20)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
Since js-libp2p has supported private network, will js-ipfs implement private network feature as go-ipfs did?
The text was updated successfully, but these errors were encountered:
gitGksgk
changed the title
js-ipfs won't support private network feature as go-ipfs did (via swarm.key)
will js-ipfs support private network feature as go-ipfs did (via swarm.key) ?
Oct 13, 2018
gitGksgk commentedOct 12, 2018
•
edited
Type: Feature
Severity:
Medium
Description:
js-ipfs private net feature not implemented
Steps to reproduce the error:
Set up a private network via putting a swarm.key in go-ipfs config file ( .ipfs/ ). get address1
Set up another go-ipfs node(node2) with the same swarm.key. In node2 use ipfs swarm connect address1. success.
Use the latest version of js-ipfs (currently 0.32.3) . put the same swarm.key in .jsipfs/ . node src\cli\bin.js daemon. it won't print the same message as go-ipfs do
node src\cli\bin.js swarm connect address1, failed.
Since js-libp2p has supported private network, will js-ipfs implement private network feature as go-ipfs did?
The text was updated successfully, but these errors were encountered: