From 92f0a9c8b6c676281dcbee6e4bce938b969ef7c2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 14 Sep 2016 15:51:59 -0400 Subject: 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. --- keysafe.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'keysafe.hs') 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 _ = -- cgit v1.2.3