@cryptotaxi247 / kubo / commits / 3ce725dd9

fix: upgrade warning to error

Steven Allen committed Jun 16, 2020 at 10:40 UTC 3ce725dd965cf2a0736c9638aeed8a302b0b15d8
1 file changed +1 -2
core/node/libp2p/sec.go
+1 -2
@@ -11,8 +11,7 @@ import (
11 func Security(enabled bool, tptConfig config.Transports) interface{} {
12 if !enabled {
13 return func() (opts Libp2pOpts) {
14 - // TODO: shouldn't this be Errorf to guarantee visibility?
15 - log.Warnf(`Your IPFS node has been configured to run WITHOUT ENCRYPTED CONNECTIONS.
14 + log.Errorf(`Your IPFS node has been configured to run WITHOUT ENCRYPTED CONNECTIONS.
15 You will not be able to connect to any nodes configured to use encrypted connections`)
16 opts.Opts = append(opts.Opts, libp2p.NoSecurity)
17 return opts