go-ipfs-config: feat: disable autonat service when in lowpower mode

This commit is contained in:
Steven Allen 2020-04-14 20:29:05 -07:00
parent 08c4a24992
commit cf3fa1bdb6

View File

@ -163,6 +163,7 @@ fetching may be degraded.
`,
Transform: func(c *Config) error {
c.Routing.Type = "dhtclient"
c.AutoNAT.ServiceMode = AutoNATServiceDisabled
c.Reprovider.Interval = "0"
c.Swarm.ConnMgr.LowWater = 20