@cryptotaxi247 / kubo / commits / af57db772

go-ipfs-config: Add test init profile

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>

Łukasz Magiera committed Jul 6, 2017 at 21:42 UTC af57db772588f78081d73b588747adc2fff2e97d
1 file changed +13
config/profile.go
+13
@@ -28,4 +28,17 @@ var ConfigProfiles = map[string]func(*Config) error{
28 c.Discovery.MDNS.Enabled = false
29 return nil
30 },
31 + "test": func(c *Config) error {
32 + c.Addresses.API = "/ip4/127.0.0.1/tcp/0"
33 + c.Addresses.Gateway = "/ip4/127.0.0.1/tcp/0"
34 +
35 + c.Swarm.DisableNatPortMap = true
36 + c.Addresses.Swarm = []string{
37 + "/ip4/127.0.0.1/tcp/0",
38 + }
39 +
40 + c.Bootstrap = []string{}
41 + c.Discovery.MDNS.Enabled = false
42 + return nil
43 + },
44 }