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>
keks committed
Dec 7, 2017 at 19:33 UTC
60e814bc830aa40bfe0d9e5b3ccb513bdcbe9e9a
1 file changed
+5
config/init.go
+5
@@ -25,6 +25,11 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
25
datastore := DefaultDatastoreConfig()
26
27
conf := &Config{
28
+ API: API{
29
+ HTTPHeaders: map[string][]string{
30
+ "Server": {"go-ipfs/" + CurrentVersionNumber},
31
+ },
32
+ },
33
34
// setup the node's default addresses.
35
// NOTE: two swarm listen addrs, one tcp, one utp.