Skip to content

Commit

Permalink
Merge PR #227.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 15, 2017
2 parents 0452df5 + 9bec29e commit 42aa180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ socket family stype protocol = do
-- so trying to change it might throw an error.
when (family == AF_INET6 && (stype == Stream || stype == Datagram)) $
E.catch (setSocketOption sock IPv6Only 0) $ (\(_ :: E.IOException) -> return ())
# else
# elif !defined(__OpenBSD__)
when (family == AF_INET6 && (stype == Stream || stype == Datagram)) $
setSocketOption sock IPv6Only 0 `onException` close sock
# endif
Expand Down

0 comments on commit 42aa180

Please sign in to comment.