From 08913c70ad63fece9ee247f2c41762ac7f5963a8 Mon Sep 17 00:00:00 2001 From: Adin Schmahmann Date: Mon, 17 Aug 2020 07:18:25 -0400 Subject: [PATCH] feat: disable secio by default --- core/node/libp2p/sec.go | 2 +- test/sharness/t0060-daemon.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/node/libp2p/sec.go b/core/node/libp2p/sec.go index 9e4d6640e49..8d6fde0008a 100644 --- a/core/node/libp2p/sec.go +++ b/core/node/libp2p/sec.go @@ -26,7 +26,7 @@ func Security(enabled bool, tptConfig config.Transports) interface{} { opt: libp2p.Security(tls.ID, tls.New), }, { priority: tptConfig.Security.SECIO, - defaultPriority: 200, + defaultPriority: config.Disabled, opt: libp2p.Security(secio.ID, secio.New), }, { priority: tptConfig.Security.Noise, diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index c2f11a10c7b..e04060e45c8 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -128,7 +128,7 @@ test_expect_success "ipfs help output looks good" ' # check transport is encrypted test_expect_success SOCAT "transport should be encrypted ( needs socat )" ' socat - tcp:localhost:$SWARM_PORT,connect-timeout=1 > swarmnc < ../t0060-data/mss-ls && - grep -q "/secio" swarmnc && + grep -q "/tls" swarmnc && test_must_fail grep -q "/plaintext/1.0.0" swarmnc || test_fsh cat swarmnc '