remove bogus AI_NUMERICSERV

Not needed, and causes a segfault on OSX when it tries to dereference the
NULL servicename. (Linux handles this case better.)
This commit is contained in:
Joey Hess 2012-07-27 14:06:06 -04:00
parent f1f90cb30b
commit c93b546ebd

View file

@ -69,7 +69,7 @@ localSocket = do
go $ Prelude.head addrs go $ Prelude.head addrs
where where
hints = defaultHints hints = defaultHints
{ addrFlags = [AI_ADDRCONFIG, AI_NUMERICSERV] { addrFlags = [AI_ADDRCONFIG]
, addrSocketType = Stream , addrSocketType = Stream
} }
go addr = bracketOnError (open addr) close (use addr) go addr = bracketOnError (open addr) close (use addr)