Enable encryption

This commit is contained in:
Sergey Ivanov 2023-07-19 00:05:04 +04:00
parent 6d60fa3425
commit 3abf7cbe1b
1 changed files with 11 additions and 9 deletions

View File

@ -104,16 +104,18 @@ runProxyMessaging env = liftIO do
instance Messaging ProxyMessaging L4Proto LBS.ByteString where
sendTo = sendToPlainProxyMessaging
sendTo = sendToProxyMessaging
receive bus _ = liftIO do
-- trace "PROXY: RECEIVE"
-- receive (view proxyUDP bus) w
let answ = view proxyAnswers bus
atomically $ do
r <- readTQueue answ
rs <- flushTQueue answ
pure (r:rs)
receive = receiveFromProxyMessaging
-- receive bus _ = liftIO do
-- -- trace "PROXY: RECEIVE"
-- -- receive (view proxyUDP bus) w
-- let answ = view proxyAnswers bus
-- atomically $ do
-- r <- readTQueue answ
-- rs <- flushTQueue answ
-- pure (r:rs)
sendToPlainProxyMessaging :: (MonadIO m)
=> ProxyMessaging