mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
core:constructor: add a log line about http retrieval
Similar to broadcast control. Useful for debugging/info purposes.
(cherry picked from commit 024225eaf2)
This commit is contained in:
parent
1fa8dfcc88
commit
1269b0ce7e
@ -99,6 +99,11 @@ func Bitswap(serverEnabled, libp2pEnabled, httpEnabled bool) interface{} {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
logger.Infof("HTTP Retrieval enabled: Allowlist: %t. Denylist: %t",
|
||||
httpCfg.Allowlist != nil,
|
||||
httpCfg.Denylist != nil,
|
||||
)
|
||||
|
||||
bitswapHTTP := httpnet.New(in.Host,
|
||||
httpnet.WithHTTPWorkers(int(httpCfg.NumWorkers.WithDefault(config.DefaultHTTPRetrievalNumWorkers))),
|
||||
httpnet.WithAllowlist(httpCfg.Allowlist),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user