wormhole pairing appid flag day 2021-12-31
Wormhole pairing will start to provide an appid to wormhole on 2021-12-31. An appid can't be provided now because Debian stable is going to ship a older version of git-annex that does not provide an appid. Assumption is that by 2021-12-31, this version of git-annex will be shipped in a Debian stable release. If that turns out to not be the case, this change will need to be cherry-picked into the git-annex in Debian stable, or its wormhole pairing will break. This commit was sponsored by Thomas Hochstein on Patreon.
This commit is contained in:
parent
06f307ad13
commit
3fe9d99f24
4 changed files with 39 additions and 3 deletions
|
@ -18,6 +18,7 @@ module Utility.MagicWormhole (
|
|||
waitCode,
|
||||
sendCode,
|
||||
WormHoleParams,
|
||||
appId,
|
||||
sendFile,
|
||||
receiveFile,
|
||||
isInstalled,
|
||||
|
@ -87,6 +88,11 @@ sendCode (CodeProducer p) = putMVar p
|
|||
|
||||
type WormHoleParams = [CommandParam]
|
||||
|
||||
-- | An appid should be provided when using wormhole in an app, to avoid
|
||||
-- using the same channel space as ad-hoc wormhole users.
|
||||
appId :: String -> WormHoleParams
|
||||
appId s = [Param "--appid", Param s]
|
||||
|
||||
-- | Sends a file. Once the send is underway, and the Code has been
|
||||
-- generated, it will be sent to the CodeObserver. (This may not happen,
|
||||
-- eg if there's a network problem).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue