From bf2923e47b37089c85c20ab339ab84083e8f59df Mon Sep 17 00:00:00 2001 From: vyzo Date: Tue, 20 Nov 2018 12:53:47 +0200 Subject: [PATCH] go-ipfs-config: autorelay options --- config/swarm.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/swarm.go b/config/swarm.go index 5b128f38aab..16dc54d9cba 100644 --- a/config/swarm.go +++ b/config/swarm.go @@ -7,6 +7,12 @@ type SwarmConfig struct { DisableRelay bool EnableRelayHop bool + // autorelay functionality + // if true, then the libp2p host will be constructed with autorelay functionality. + EnableAutoRelay bool + // if true, then an AutoNATService will be instantiated to facilitate autorelay + EnableAutoNATService bool + ConnMgr ConnMgr }