@cryptotaxi247 / kubo / commits / 1269b0ce7

core:constructor: add a log line about http retrieval

Similar to broadcast control. Useful for debugging/info purposes. (cherry picked from commit 024225eaf25bc183c6398bdae257c7c301426b79)

Hector Sanjuan committed Jun 26, 2025 at 12:42 UTC 1269b0ce7e505a482ea9e33b2c0e899e217166e1
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),