diff --git a/dprox.cabal b/dprox.cabal
--- a/dprox.cabal
+++ b/dprox.cabal
@@ -4,10 +4,10 @@
 --
 -- see: https://github.com/sol/hpack
 --
--- hash: e6d3163f54b56ac9d5fc87fae25c5446de14a1af8a295aa09b2db319888e28d7
+-- hash: fa94cf155fa0dc8474980910c4a902990e22de07b06863ade39fb8177bba7bf4
 
 name:           dprox
-version:        0.1.2
+version:        0.1.2.1
 synopsis:       a lightweight DNS proxy server
 description:    Please see the README on GitHub at <https://github.com/bjin/dprox#readme>
 category:       DNS
@@ -47,7 +47,7 @@
     , containers >=0.6
     , dns >=3.0.4
     , iproute >=1.7
-    , network >=2.8 && <3
+    , network >=2.8
     , optparse-applicative >=0.14
     , streaming-commons >=0.2
     , unix >=2.7
@@ -73,9 +73,11 @@
     , dns >=3.0.4
     , hspec
     , iproute >=1.7
-    , network >=2.8 && <3
+    , network >=2.8
     , optparse-applicative >=0.14
     , streaming-commons >=0.2
     , unix >=2.7
     , unordered-containers >=0.2
+  if flag(static)
+    ghc-options: -optl-static
   default-language: Haskell2010
