]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/SSL.hs
Honor cnfServerV4Addr and cnfServerV6Addr.
[Lucu.git] / examples / SSL.hs
index 129316eba787f1e26ed7fbe88667bb6d96e7abd5..436749fdc01fe7a2a081fec88831414d815c5fe5 100644 (file)
@@ -2,7 +2,6 @@
 import           Control.Monad
 import "mtl"     Control.Monad.Trans
 import           Data.Time.Clock
-import           Network
 import           Network.HTTP.Lucu
 import           OpenSSL
 import           OpenSSL.EVP.PKey
@@ -21,9 +20,9 @@ main = withOpenSSL $
           SSL.contextSetDefaultCiphers ctx
 
           let config    = defaultConfig {
-                            cnfServerPort = PortNumber 9000
+                            cnfServerPort = "9000"
                           , cnfSSLConfig  = Just SSLConfig {
-                                              sslServerPort = PortNumber 9001
+                                              sslServerPort = "9001"
                                             , sslContext    = ctx
                                             }
                           }