Permalink
Browse files

Change default listen address to 0.0.0.0.

  • Loading branch information...
1 parent ee86927 commit 72e0c6c6be24d51766b2b9b9397447049c60eb2f @jgm committed Jul 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 gitit.hs
View
@@ -122,10 +122,10 @@ flags =
checkListen :: String -> String
checkListen l | isIPv6address l = l
| isIPv4address l = l
- | otherwise = error "Gitit.checkListen: Not a valid interface name"
+ | otherwise = error "Gitit.checkListen: Not a valid interface name"
getListenOrDefault :: [Opt] -> String
-getListenOrDefault [] = "127.0.0.1"
+getListenOrDefault [] = "0.0.0.0"
getListenOrDefault ((Listen l):_) = l
getListenOrDefault (_:os) = getListenOrDefault os

0 comments on commit 72e0c6c

Please sign in to comment.