diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-29 19:11:51 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-29 19:11:51 -0400 |
commit | aead2b77331482ca3af2ea386de00e41c50f7c12 (patch) | |
tree | 2dd818c3371d045e123917a4eb82c0baeb4cf563 /keysafe.hs | |
parent | 7ad3536737f30bbd328a4d37f78a72f9600fb4b8 (diff) | |
download | keysafe-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.hs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |