summaryrefslogtreecommitdiffhomepage
path: root/keysafe.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-14 15:51:59 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-14 15:51:59 -0400
commit92f0a9c8b6c676281dcbee6e4bce938b969ef7c2 (patch)
treeb5fb0fee6d476db3b6658c5d7ec07e9387658fb2 /keysafe.hs
parent0709306afeaba998d8f0a76e37517d4c227ac1c3 (diff)
downloadkeysafe-92f0a9c8b6c676281dcbee6e4bce938b969ef7c2.tar.gz
Added --chaff mode which uploads random junk to servers.
This is useful both to test the server throttling of uploads, and to make it harder for servers to know if an object actually contains secret key information. This commit was sponsored by Brock Spratlen on Patreon.
Diffstat (limited to 'keysafe.hs')
-rw-r--r--keysafe.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/keysafe.hs b/keysafe.hs
index 04f2d9b..1abab5f 100644
--- a/keysafe.hs
+++ b/keysafe.hs
@@ -71,6 +71,8 @@ dispatch cmdline ui storagelocations tunables possibletunables = do
runServer
(CmdLine.localstoragedirectory cmdline)
(CmdLine.serverConfig cmdline)
+ go (CmdLine.Chaff hn) _ = storeChaff hn
+ (CmdLine.serverPort (CmdLine.serverConfig cmdline))
go CmdLine.Benchmark _ =
benchmarkTunables tunables
go CmdLine.Test _ =