diff --git a/config/swarm.go b/config/swarm.go index 5b128f38aabc..16dc54d9cba8 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 }