Skip to content

Commit

Permalink
Merge pull request Happstack#67 from gbaz/patch-1
Browse files Browse the repository at this point in the history
Fix inet_addr
  • Loading branch information
stepcut authored May 27, 2021
2 parents d9cdb9a + c81a8ec commit 7cab1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Happstack/Server/Internal/Listen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ listenOnIPv4 ip portm = do

inet_addr :: String -> IO Socket.HostAddress
inet_addr ip = do
addrInfos <- Socket.getAddrInfo (Just Socket.defaultHints) (Just ip) (Just "tcp")
addrInfos <- Socket.getAddrInfo (Just Socket.defaultHints) (Just ip) Nothing
let getHostAddress addrInfo = case Socket.addrAddress addrInfo of
Socket.SockAddrInet _ hostAddress -> Just hostAddress
_ -> Nothing
Expand Down

0 comments on commit 7cab1d7

Please sign in to comment.