diff options
author | joe <joe@jerkface.net> | 2017-07-02 14:30:21 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-07-02 14:30:46 -0400 |
commit | de4a5fd744b4744a80e3403f914886ff7df10526 (patch) | |
tree | 7b48a12ec29bdde0555a21cd3925ed477f6e5506 /src/Network/KRPC | |
parent | 4b55309c692cf7219762b77e5f10909a26c966b4 (diff) |
Added KRPC class method to check encrypted Tox nonces.
Diffstat (limited to 'src/Network/KRPC')
-rw-r--r-- | src/Network/KRPC/Method.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Network/KRPC/Method.hs b/src/Network/KRPC/Method.hs index 84c7fe4c..2033f808 100644 --- a/src/Network/KRPC/Method.hs +++ b/src/Network/KRPC/Method.hs | |||
@@ -100,3 +100,8 @@ class ( Typeable req, Typeable resp) | |||
100 | method = Method $ fromString $ L.map toLower $ show $ typeOf hole | 100 | method = Method $ fromString $ L.map toLower $ show $ typeOf hole |
101 | where | 101 | where |
102 | hole = error "krpc.method: impossible" :: req | 102 | hole = error "krpc.method: impossible" :: req |
103 | |||
104 | |||
105 | validateExchange :: dht req -> dht resp -> Bool | ||
106 | validateExchange _ _ = True | ||
107 | |||