add hslogger

This commit is contained in:
Erèbe 2016-05-30 17:27:04 +02:00
parent 6d0eea8328
commit 3cd5dba661
2 changed files with 4 additions and 1 deletions

View file

@ -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')