Skip to content

Commit

Permalink
fix: upgrade warning to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jun 16, 2020
1 parent 8e40b1c commit 8644485
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/node/libp2p/sec.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import (
func Security(enabled bool, tptConfig config.Transports) interface{} {
if !enabled {
return func() (opts Libp2pOpts) {
// TODO: shouldn't this be Errorf to guarantee visibility?
log.Warnf(`Your IPFS node has been configured to run WITHOUT ENCRYPTED CONNECTIONS.
log.Errorf(`Your IPFS node has been configured to run WITHOUT ENCRYPTED CONNECTIONS.
You will not be able to connect to any nodes configured to use encrypted connections`)
opts.Opts = append(opts.Opts, libp2p.NoSecurity)
return opts
Expand Down

0 comments on commit 8644485

Please sign in to comment.