summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Onion/Handlers.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-10-30 00:45:32 -0400
committerjoe <joe@jerkface.net>2017-10-30 00:45:32 -0400
commit4b4266424a6b1d1fb57e29f6c331462d5abb80e1 (patch)
treedbfbce692d272f08362e9989a8fffeb676701cdd /src/Network/Tox/Onion/Handlers.hs
parent08c02ea307d056a2825d51699e1f2e111d41a7f0 (diff)
Tox: LanDiscovery packet. Also: IsUnsolicited query/response
classification.
Diffstat (limited to 'src/Network/Tox/Onion/Handlers.hs')
-rw-r--r--src/Network/Tox/Onion/Handlers.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox/Onion/Handlers.hs b/src/Network/Tox/Onion/Handlers.hs
index 76908df8..b06fc2af 100644
--- a/src/Network/Tox/Onion/Handlers.hs
+++ b/src/Network/Tox/Onion/Handlers.hs
@@ -42,7 +42,7 @@ import Data.Functor.Identity
42type Client r = QR.Client String PacketKind TransactionId (OnionDestination r) Message 42type Client r = QR.Client String PacketKind TransactionId (OnionDestination r) Message
43type Message = OnionMessage Identity 43type Message = OnionMessage Identity
44 44
45classify :: Message -> MessageClass String PacketKind TransactionId 45classify :: Message -> MessageClass String PacketKind TransactionId (OnionDestination r) Message
46classify msg = go msg 46classify msg = go msg
47 where 47 where
48 go (OnionAnnounce announce) = IsQuery AnnounceType 48 go (OnionAnnounce announce) = IsQuery AnnounceType