@cryptotaxi247 / kubo / commits / a617c52f5

libp2p: default to preffering TLS

See https://github.com/libp2p/go-libp2p/pull/2650.

Jorropo committed Nov 22, 2023 at 06:04 UTC a617c52f57f20956f8ecd7cca3b4cb36e68bb67e
2 files changed +4 -4
core/node/libp2p/sec.go
+2 -2
@@ -31,11 +31,11 @@ func Security(enabled bool, tptConfig config.Transports) interface{} {
31 return func() (opts Libp2pOpts) {
32 opts.Opts = append(opts.Opts, prioritizeOptions([]priorityOption{{
33 priority: tptConfig.Security.TLS,
34 - defaultPriority: 200,
34 + defaultPriority: 100,
35 opt: libp2p.Security(tls.ID, tls.New),
36 }, {
37 priority: tptConfig.Security.Noise,
38 - defaultPriority: 100,
38 + defaultPriority: 200,
39 opt: libp2p.Security(noise.ID, noise.New),
40 }}))
41 return opts
docs/config.md
+2 -2
@@ -2199,7 +2199,7 @@ receiver supports. When establishing an _inbound_ connection, Kubo will let
2199 the initiator choose the protocol, but will refuse to use any of the disabled
2200 transports.
2201
2202 -Supported transports are: TLS (priority 100) and Noise (priority 300).
2202 +Supported transports are: TLS (priority 100) and Noise (priority 200).
2203
2204 No default priority will ever be less than 100.
2205
@@ -2224,7 +2224,7 @@ TLS as the cross-platform, default libp2p protocol due to ease of
2224 implementation. It is currently enabled by default but with low priority as it's
2225 not yet widely supported.
2226
2227 -Default: `300`
2227 +Default: `200`
2228
2229 Type: `priority`
2230