go-ipfs-config: autorelay options
vyzo committed
Nov 20, 2018 at 12:53 UTC
bf2923e47b37089c85c20ab339ab84083e8f59df
1 file changed
+6
config/swarm.go
+6
@@ -7,6 +7,12 @@ type SwarmConfig struct {
7
DisableRelay bool
8
EnableRelayHop bool
9
10
+ // autorelay functionality
11
+ // if true, then the libp2p host will be constructed with autorelay functionality.
12
+ EnableAutoRelay bool
13
+ // if true, then an AutoNATService will be instantiated to facilitate autorelay
14
+ EnableAutoNATService bool
15
+
16
ConnMgr ConnMgr
17
}
18