feat: disable secio by default
Adin Schmahmann committed
Aug 17, 2020 at 07:18 UTC
08913c70ad63fece9ee247f2c41762ac7f5963a8
2 files changed
+2
-2
core/node/libp2p/sec.go
+1
-1
@@ -26,7 +26,7 @@ func Security(enabled bool, tptConfig config.Transports) interface{} {
26
opt: libp2p.Security(tls.ID, tls.New),
27
}, {
28
priority: tptConfig.Security.SECIO,
29
- defaultPriority: 200,
29
+ defaultPriority: config.Disabled,
30
opt: libp2p.Security(secio.ID, secio.New),
31
}, {
32
priority: tptConfig.Security.Noise,
test/sharness/t0060-daemon.sh
+1
-1
@@ -128,7 +128,7 @@ test_expect_success "ipfs help output looks good" '
128
# check transport is encrypted
129
test_expect_success SOCAT "transport should be encrypted ( needs socat )" '
130
socat - tcp:localhost:$SWARM_PORT,connect-timeout=1 > swarmnc < ../t0060-data/mss-ls &&
131
- grep -q "/secio" swarmnc &&
131
+ grep -q "/tls" swarmnc &&
132
test_must_fail grep -q "/plaintext/1.0.0" swarmnc ||
133
test_fsh cat swarmnc
134
'