diff --git a/fission-cli/library/Fission/CLI/IPFS/Configure.hs b/fission-cli/library/Fission/CLI/IPFS/Configure.hs index 368b23406..ba088954c 100644 --- a/fission-cli/library/Fission/CLI/IPFS/Configure.hs +++ b/fission-cli/library/Fission/CLI/IPFS/Configure.hs @@ -5,6 +5,7 @@ module Fission.CLI.IPFS.Configure , setGatewayAddress , setSwarmAddresses , enableRelay + , enableHolePunching ) where import qualified RIO.ByteString.Lazy as Lazy @@ -102,6 +103,19 @@ enableRelay :: enableRelay = ensureM $ IPFS.runLocal [ "config --bool" - , "Swarm.EnableRelayHop" + , "Swarm.RelayClient.Enabled" + ] + "true" + +enableHolePunching :: + ( MonadLocalIPFS m + , MonadRaise m + , m `Raises` IPFS.Error + ) + => m IPFS.RawMessage +enableHolePunching = + ensureM $ IPFS.runLocal + [ "config --bool" + , "Swarm.EnableHolePunching" ] "true" diff --git a/fission-cli/library/Fission/CLI/IPFS/Executable.hs b/fission-cli/library/Fission/CLI/IPFS/Executable.hs index 7a6a17f21..cd63961d3 100644 --- a/fission-cli/library/Fission/CLI/IPFS/Executable.hs +++ b/fission-cli/library/Fission/CLI/IPFS/Executable.hs @@ -71,7 +71,7 @@ place' host = do IPFS.BinPath ipfsPath <- Path.globalIPFSBin -- Network - ipfsBin <- ensureM . unpack =<< download (IPFS.Version 0 9 0) host + ipfsBin <- ensureM . unpack =<< download (IPFS.Version 0 12 2) host logDebug @Text "🚎 Moving IPFS into place..." File.lazyForceWrite ipfsPath ipfsBin @@ -118,7 +118,9 @@ configure :: configure = do logUser @Text "🎛️ Configuring managed IPFS" void IPFS.Config.init + void IPFS.Config.enableRelay + void IPFS.Config.enableHolePunching void IPFS.Config.setApiAddress void IPFS.Config.setBootstrap diff --git a/fission-cli/package.yaml b/fission-cli/package.yaml index c6cf578e3..99f0434a8 100644 --- a/fission-cli/package.yaml +++ b/fission-cli/package.yaml @@ -1,5 +1,5 @@ name: fission-cli -version: "2.17.1.0" +version: "2.17.2.0" category: CLI author: - Brooklyn Zelenka