@cryptotaxi247 / kubo / commits / 024225eaf

core:constructor: add a log line about http retrieval

Similar to broadcast control. Useful for debugging/info purposes.

Hector Sanjuan committed Jun 26, 2025 at 12:42 UTC 024225eaf25bc183c6398bdae257c7c301426b79
1 file changed +5
core/node/bitswap.go
+5
@@ -99,6 +99,11 @@ func Bitswap(serverEnabled, libp2pEnabled, httpEnabled bool) interface{} {
99 if err != nil {
100 return nil, err
101 }
102 + logger.Infof("HTTP Retrieval enabled: Allowlist: %t. Denylist: %t",
103 + httpCfg.Allowlist != nil,
104 + httpCfg.Denylist != nil,
105 + )
106 +
107 bitswapHTTP := httpnet.New(in.Host,
108 httpnet.WithHTTPWorkers(int(httpCfg.NumWorkers.WithDefault(config.DefaultHTTPRetrievalNumWorkers))),
109 httpnet.WithAllowlist(httpCfg.Allowlist),