summaryrefslogtreecommitdiffhomepage
path: root/CmdLine.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-10-23 15:30:30 -0400
committerJoey Hess <joeyh@joeyh.name>2016-10-23 15:30:30 -0400
commit2020ccc3ffbbc8a255c9e4e043167786124be2cf (patch)
tree2b25f9c50ba6495c7308fb6946bc01bdda27361a /CmdLine.hs
parentbb3d17615a9ccbd96dbecc0dad335a04d578ba0f (diff)
downloadkeysafe-2020ccc3ffbbc8a255c9e4e043167786124be2cf.tar.gz
Change default for --port to 4242.
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/CmdLine.hs b/CmdLine.hs
index 155a628..3ba4e23 100644
--- a/CmdLine.hs
+++ b/CmdLine.hs
@@ -181,7 +181,7 @@ parseServerConfig = ServerConfig
<$> option auto
( long "port"
<> metavar "P"
- <> value 80
+ <> value 4242
<> showDefault
<> help "Port for server to listen on."
)
@@ -243,4 +243,4 @@ hostPortOption = eitherReader $ \s ->
(h, ':':ps) -> case reads ps of
[(p, "")] -> Right (h, p)
_ -> Left $ "unable to parse port \"" ++ ps ++ "\""
- (h, _) -> Right (h, 80)
+ (h, _) -> Right (h, 4242)