diff --git a/Network/Socket.hsc b/Network/Socket.hsc
--- a/Network/Socket.hsc
+++ b/Network/Socket.hsc
@@ -428,7 +428,7 @@
     -- the IPv6Only option is only supported on Windows Vista and later,
     -- so trying to change it might throw an error
     when (family == AF_INET6) $
-            catchIOError (setSocketOption sock IPv6Only 0) $ const $ return ()
+            catch (setSocketOption sock IPv6Only 0) $ const $ return ()
 # else
     when (family == AF_INET6) $ setSocketOption sock IPv6Only 0
 # endif
diff --git a/network.cabal b/network.cabal
--- a/network.cabal
+++ b/network.cabal
@@ -1,5 +1,5 @@
 name:           network
-version:        2.3.0.12
+version:        2.3.0.13
 license:        BSD3
 license-file:   LICENSE
 maintainer:     Johan Tibell <johan.tibell@gmail.com>
