mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 14:28:02 +08:00
go-ipfs-config: cmds: use Executors
- some fixes for cmds1.0 - reinsert plugin loading code, pretty print wrapper TODO: if plugin loading fails it only calls log.Warning. returning an error would be better but that would have to happen after PreRun, which is not possible atm. License: MIT Signed-off-by: keks <keks@cryptoscope.co>
This commit is contained in:
parent
cdb9c2f316
commit
60e814bc83
@ -25,6 +25,11 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
|
||||
datastore := DefaultDatastoreConfig()
|
||||
|
||||
conf := &Config{
|
||||
API: API{
|
||||
HTTPHeaders: map[string][]string{
|
||||
"Server": {"go-ipfs/" + CurrentVersionNumber},
|
||||
},
|
||||
},
|
||||
|
||||
// setup the node's default addresses.
|
||||
// NOTE: two swarm listen addrs, one tcp, one utp.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user