Skip to content

Commit 7cab1d7

Browse files
authored
Merge pull request #67 from gbaz/patch-1
Fix inet_addr
2 parents d9cdb9a + c81a8ec commit 7cab1d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Happstack/Server/Internal/Listen.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ listenOnIPv4 ip portm = do
6363

6464
inet_addr :: String -> IO Socket.HostAddress
6565
inet_addr ip = do
66-
addrInfos <- Socket.getAddrInfo (Just Socket.defaultHints) (Just ip) (Just "tcp")
66+
addrInfos <- Socket.getAddrInfo (Just Socket.defaultHints) (Just ip) Nothing
6767
let getHostAddress addrInfo = case Socket.addrAddress addrInfo of
6868
Socket.SockAddrInet _ hostAddress -> Just hostAddress
6969
_ -> Nothing

0 commit comments

Comments
 (0)