summaryrefslogtreecommitdiffhomepage
path: root/keysafe.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-29 19:11:51 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-29 19:11:51 -0400
commitaead2b77331482ca3af2ea386de00e41c50f7c12 (patch)
tree2dd818c3371d045e123917a4eb82c0baeb4cf563 /keysafe.hs
parent7ad3536737f30bbd328a4d37f78a72f9600fb4b8 (diff)
downloadkeysafe-aead2b77331482ca3af2ea386de00e41c50f7c12.tar.gz
make server default to only listening to localhost
This way, the tor hidden service using it will be the only way it's exposed.
Diffstat (limited to 'keysafe.hs')
-rw-r--r--keysafe.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/keysafe.hs b/keysafe.hs
index 2ba5ff7..f724b97 100644
--- a/keysafe.hs
+++ b/keysafe.hs
@@ -63,8 +63,10 @@ dispatch cmdline ui storagelocations tunables possibletunables = do
restore storagelocations ui possibletunables Gpg.anyKey
go CmdLine.UploadQueued _ =
uploadQueued
- go (CmdLine.Server port) _ =
- runServer port
+ go (CmdLine.Server) _ =
+ runServer
+ (CmdLine.serverAddress $ CmdLine.serverConfig cmdline)
+ (CmdLine.serverPort $ CmdLine.serverConfig cmdline)
go CmdLine.Benchmark _ =
benchmarkTunables tunables