Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit f3a67c4

Browse files
authored
feat: prioritize noise over secio (#3216)
This would be good to land in 0.49 as we're planning to remove support for SECIO in 0.50. - When dialing js-ipfs >=0.47, or go-ipfs >=0.5 nodes, there will be no latency hit as we can start Noise immediately. - Incoming dials for ipfs <0.49 and >0=0.47, will take a round trip hit when connecting as they'll fail to negotiate Secio and fallback to Noise
1 parent 7e0e85c commit f3a67c4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/ipfs/src/core/runtime/libp2p-browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module.exports = () => {
2525
Multiplex
2626
],
2727
connEncryption: [
28-
SECIO,
29-
NOISE
28+
NOISE,
29+
SECIO
3030
],
3131
peerDiscovery: [],
3232
dht: KadDHT,

packages/ipfs/src/core/runtime/libp2p-nodejs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ module.exports = () => {
2626
Multiplex
2727
],
2828
connEncryption: [
29-
SECIO,
30-
NOISE
29+
NOISE,
30+
SECIO
3131
],
3232
peerDiscovery: [
3333
MulticastDNS

0 commit comments

Comments
 (0)