diff options
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index 6f20e670..d3bf9606 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -859,7 +859,8 @@ handshakeH sessions addrRaw hshake@(Handshake (Cookie n24 ecookie) nonce24 encry | |||
859 | return Nothing | 859 | return Nothing |
860 | 860 | ||
861 | sessionPacketH :: NetCryptoSessions -> SockAddr -> CryptoPacket Encrypted -> IO (Maybe (x -> x)) | 861 | sessionPacketH :: NetCryptoSessions -> SockAddr -> CryptoPacket Encrypted -> IO (Maybe (x -> x)) |
862 | sessionPacketH sessions addr (CryptoPacket nonce16 encrypted) = do | 862 | sessionPacketH sessions addrRaw (CryptoPacket nonce16 encrypted) = do |
863 | let addr = either id id $ either4or6 addrRaw | ||
863 | dput XNetCrypto ("RECIEVED CRYPTOPACKET from " ++ show addr) | 864 | dput XNetCrypto ("RECIEVED CRYPTOPACKET from " ++ show addr) |
864 | let crypto = transportCrypto sessions | 865 | let crypto = transportCrypto sessions |
865 | allsessions = netCryptoSessions sessions | 866 | allsessions = netCryptoSessions sessions |