mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-28 16:17:28 -04:00
add i2p support to libretroshare
This commit is contained in:
parent
a022019358
commit
c17d0e1498
10 changed files with 206 additions and 38 deletions
|
@ -2026,7 +2026,11 @@ void p3LinkMgrIMPL::locked_ConnectAttempt_ProxyAddress(peerConnectState *peer,
|
|||
peerConnectAddress pca;
|
||||
pca.addr = proxy_addr;
|
||||
|
||||
pca.type = RS_NET_CONN_TCP_HIDDEN;
|
||||
if (mPeerMgr->hiddenDomainToHiddenType(domain_addr) == RS_HIDDEN_TYPE_I2P)
|
||||
pca.type = RS_NET_CONN_TCP_HIDDEN_I2P;
|
||||
else
|
||||
/* default tor */
|
||||
pca.type = RS_NET_CONN_TCP_HIDDEN_TOR;
|
||||
|
||||
//for the delay, we add a random time and some more time when the friend list is big
|
||||
pca.delay = P3CONNMGR_TCP_DEFAULT_DELAY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue