From 97590c70cc3f8d96a42e733a72dcee6856a3ef99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 20 Mar 2018 16:56:56 +0100 Subject: [PATCH] go-ipfs-config: fix default-net profile not reverting bootstrap config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- config/profile.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/profile.go b/config/profile.go index a7d4f1fe3..eab44cfb7 100644 --- a/config/profile.go +++ b/config/profile.go @@ -86,6 +86,12 @@ Inverse profile of the test profile.`, Transform: func(c *Config) error { c.Addresses = addressesConfig() + bootstrapPeers, err := DefaultBootstrapPeers() + if err != nil { + return err + } + c.Bootstrap = appendSingle(c.Bootstrap, BootstrapPeerStrings(bootstrapPeers)) + c.Swarm.DisableNatPortMap = false c.Discovery.MDNS.Enabled = true return nil