aboutsummaryrefslogtreecommitdiff
path: root/Utility/WebApp.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-06 22:57:54 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-06 22:57:54 -0400
commitbfe292d5a06bfa6a07c1f3ad6d07c07e33f4a3b5 (patch)
treeedac74fc7deceb877a64d6631477a3f163c69116 /Utility/WebApp.hs
parentd36f19e7f422518f16d306be8cdc9561388f49a6 (diff)
whups
Diffstat (limited to 'Utility/WebApp.hs')
-rw-r--r--Utility/WebApp.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs
index 274902c3e..225021b2e 100644
--- a/Utility/WebApp.hs
+++ b/Utility/WebApp.hs
@@ -70,7 +70,7 @@ browserProc url = proc "xdg-open" [url]
-}
runWebApp :: Maybe HostName -> Wai.Application -> (SockAddr -> IO ()) -> IO ()
runWebApp h app observer = withSocketsDo $ do
- sock <- bindPort (settingsPort webAppSettings) (settingsHost webAppSettings)
+ sock <- getSocket h
void $ forkIO $ runSettingsSocket webAppSettings sock app
sockaddr <- fixSockAddr <$> getSocketName sock
observer sockaddr