diff options
author | joe <joe@jerkface.net> | 2017-09-20 20:47:10 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-09-20 20:47:10 -0400 |
commit | 6b822e47e4995e4aaf4cb1cc034c34314bd51da2 (patch) | |
tree | 5e83ab1f500ba850b25bcdd5f4d54bf03809dd22 /src/Network/Tox.hs | |
parent | 447e9e53661edd7c633f757eb3403298849e4c35 (diff) |
Added outbound initiation addresses to the Onion transport.
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 17585dfd..7893d84a 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -235,7 +235,8 @@ newTox keydb addr = do | |||
235 | atomically $ newTVar nil { maxInterval = 20 } -- 20 second timeout on announce ping-ids. | 235 | atomically $ newTVar nil { maxInterval = 20 } -- 20 second timeout on announce ping-ids. |
236 | oniondrg <- drgNew | 236 | oniondrg <- drgNew |
237 | let onionnet = layerTransport (Onion.decrypt crypto) (Onion.encrypt crypto) onioncrypt | 237 | let onionnet = layerTransport (Onion.decrypt crypto) (Onion.encrypt crypto) onioncrypt |
238 | onionclient <- newClient oniondrg onionnet Onion.classify (const $ return $ Onion.OnionToMe addr) | 238 | onionclient <- newClient oniondrg onionnet Onion.classify |
239 | (const $ return $ either (const $ error "bad sockaddr") Onion.OnionDestination $ nodeInfo zeroID addr) | ||
239 | (Onion.handlers onionnet routing toks keydb) | 240 | (Onion.handlers onionnet routing toks keydb) |
240 | (const id) | 241 | (const id) |
241 | return Tox | 242 | return Tox |