add i2p support to libretroshare

This commit is contained in:
sehraf 2015-09-07 11:22:15 +02:00
parent a022019358
commit c17d0e1498
10 changed files with 206 additions and 38 deletions

View file

@ -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;