From b6596437481fa7fff30fc22d9122904359c0566a Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Mon, 25 Oct 2021 15:50:19 +0200 Subject: [PATCH] Attempt to fix non sam3 builds --- libretroshare/src/pqi/pqisslpersongrp.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/pqi/pqisslpersongrp.cc b/libretroshare/src/pqi/pqisslpersongrp.cc index 16112c744..328d64cae 100644 --- a/libretroshare/src/pqi/pqisslpersongrp.cc +++ b/libretroshare/src/pqi/pqisslpersongrp.cc @@ -82,7 +82,7 @@ pqiperson * pqisslpersongrp::locked_createPerson(const RsPeerId& id, pqilistener rss->addSerialType(new RsRawSerialiser()); pqicSOCKSProxy = new pqiconnect(pqip, rss, pqis); } - +#ifdef RS_USE_I2P_SAM3 if (rsAutoProxyMonitor::instance()->isEnabled(autoProxyType::I2PSAM3)) { pqissli2psam3 *pqis = new pqissli2psam3((pqissllistener *) listener, pqip, mLinkMgr); @@ -90,9 +90,11 @@ pqiperson * pqisslpersongrp::locked_createPerson(const RsPeerId& id, pqilistener rss->addSerialType(new RsRawSerialiser()); pqicI2P = new pqiconnect(pqip, rss, pqis); - } else { - pqicI2P = pqicSOCKSProxy; } + else +#endif // def RS_USE_I2P_SAM3 + pqicI2P = pqicSOCKSProxy; + /* first select type based on peer */ uint32_t typePeer = mPeerMgr->getHiddenType(id);