Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1a0474bb
Unverified
Commit
1a0474bb
authored
Aug 17, 2020
by
Adin Schmahmann
Committed by
GitHub
Aug 17, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7600 from ipfs/feat/disable-secio-default
Disable secio by default
parents
8e730218
08913c70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
core/node/libp2p/sec.go
core/node/libp2p/sec.go
+1
-1
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+1
-1
No files found.
core/node/libp2p/sec.go
View file @
1a0474bb
...
@@ -26,7 +26,7 @@ func Security(enabled bool, tptConfig config.Transports) interface{} {
...
@@ -26,7 +26,7 @@ func Security(enabled bool, tptConfig config.Transports) interface{} {
opt
:
libp2p
.
Security
(
tls
.
ID
,
tls
.
New
),
opt
:
libp2p
.
Security
(
tls
.
ID
,
tls
.
New
),
},
{
},
{
priority
:
tptConfig
.
Security
.
SECIO
,
priority
:
tptConfig
.
Security
.
SECIO
,
defaultPriority
:
200
,
defaultPriority
:
config
.
Disabled
,
opt
:
libp2p
.
Security
(
secio
.
ID
,
secio
.
New
),
opt
:
libp2p
.
Security
(
secio
.
ID
,
secio
.
New
),
},
{
},
{
priority
:
tptConfig
.
Security
.
Noise
,
priority
:
tptConfig
.
Security
.
Noise
,
...
...
test/sharness/t0060-daemon.sh
View file @
1a0474bb
...
@@ -128,7 +128,7 @@ test_expect_success "ipfs help output looks good" '
...
@@ -128,7 +128,7 @@ test_expect_success "ipfs help output looks good" '
# check transport is encrypted
# check transport is encrypted
test_expect_success SOCAT
"transport should be encrypted ( needs socat )"
'
test_expect_success SOCAT
"transport should be encrypted ( needs socat )"
'
socat - tcp:localhost:$SWARM_PORT,connect-timeout=1 > swarmnc < ../t0060-data/mss-ls &&
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_must_fail grep -q "/plaintext/1.0.0" swarmnc ||
test_fsh cat swarmnc
test_fsh cat swarmnc
'
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment