add hslogger
This commit is contained in:
parent
6d0eea8328
commit
3cd5dba661
2 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,7 @@ connectionToStream :: Connection -> IO WS.Stream
|
|||
connectionToStream Connection{..} = WS.makeStream read (write . toStrict . fromJust)
|
||||
|
||||
runTunnelingClientWith :: TunnelSettings -> (Connection -> IO ()) -> (Connection -> IO ())
|
||||
runTunnelingClientWith info@TunnelSettings{..} app = \conn -> do
|
||||
runTunnelingClientWith info@TunnelSettings{..} app conn = do
|
||||
stream <- connectionToStream conn
|
||||
void $ WS.runClientWithStream stream serverHost (toPath info) WS.defaultConnectionOptions [] $ \conn' ->
|
||||
app (toConnection conn')
|
||||
|
|
|
@ -26,6 +26,7 @@ library
|
|||
, websockets
|
||||
, network-conduit-tls
|
||||
, connection
|
||||
, hslogger
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
|
@ -38,6 +39,8 @@ executable wstunnel
|
|||
, cmdargs
|
||||
, classy-prelude
|
||||
, bytestring
|
||||
, hslogger
|
||||
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite wstunnel-test
|
||||
|
|
Loading…
Reference in a new issue