summaryrefslogtreecommitdiff
path: root/Utility/WebApp.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-02 13:01:42 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-02 13:01:42 -0400
commitaed070cc4e2e97e3920f0e37633ee2fc864c2f9b (patch)
tree2da9754e04f6359a6246edd903a63d4ef82dc164 /Utility/WebApp.hs
parent991c2fa5141cd0317271fa87685625fa8daf780e (diff)
stop setting ai_addrconfig
This caused the code to fail on Android, which doesn't know that flag. It seems best to let the OS default flags be used. Tested working ok on Linux. The only difference on Linux is it might return a v4mapped ipv6 address sometimes.
Diffstat (limited to 'Utility/WebApp.hs')
-rw-r--r--Utility/WebApp.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs
index bafc9ac22..1306b14c3 100644
--- a/Utility/WebApp.hs
+++ b/Utility/WebApp.hs
@@ -87,10 +87,7 @@ getSocket h = do
_ -> error "unable to bind to a local socket"
where
(hostname, port) = maybe (localhost, Nothing) splitHostPort h
- hints = defaultHints
- { addrFlags = [AI_ADDRCONFIG]
- , addrSocketType = Stream
- }
+ hints = defaultHints { addrSocketType = Stream }
{- Repeated attempts because bind sometimes fails for an
- unknown reason on OSX. -}
go addr = go' 100 addr