diff options
author | Joe Crayne <joe@jerkface.net> | 2019-11-27 22:28:37 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-01 22:50:28 -0500 |
commit | 3ebd7ae11d7a86798b31bdb17af9797ba5e09f1d (patch) | |
tree | c7290e69f27d5a32869ab20a88f48dba0af62b64 /dht/examples/testTox.hs | |
parent | 557b47bb3e9a39f74b35abcf4bb09cb85f211106 (diff) |
TCP Relay: use same crypto keys as Tox UDP node.
Diffstat (limited to 'dht/examples/testTox.hs')
-rw-r--r-- | dht/examples/testTox.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dht/examples/testTox.hs b/dht/examples/testTox.hs index 67c4daef..57601422 100644 --- a/dht/examples/testTox.hs +++ b/dht/examples/testTox.hs | |||
@@ -42,10 +42,11 @@ makeToxNode :: UDPTransport -> Maybe SecretKey | |||
42 | -> IO (Tox extra) | 42 | -> IO (Tox extra) |
43 | makeToxNode udp sec onSessionF = do | 43 | makeToxNode udp sec onSessionF = do |
44 | keysdb <- newKeysDatabase | 44 | keysdb <- newKeysDatabase |
45 | crypto <- newToxCrypto sec | ||
45 | newToxOverTransport keysdb | 46 | newToxOverTransport keysdb |
46 | (SockAddrInet 0 0) | 47 | (SockAddrInet 0 0) |
47 | onSessionF | 48 | onSessionF |
48 | sec | 49 | crypto |
49 | udp | 50 | udp |
50 | (\_ _ -> return ()) | 51 | (\_ _ -> return ()) |
51 | 52 | ||