mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-29 16:04:32 +00:00
support ratchets I2P encryption
This commit is contained in:
parent
d917124bff
commit
53de42565e
@ -24,7 +24,7 @@
|
||||
#define I2P_SAM_MY_DESTINATION_DEFAULT SAM_GENERATE_MY_DESTINATION
|
||||
|
||||
#define I2P_SAM_I2P_OPTIONS_PARAM "-i2poptions"
|
||||
#define I2P_SAM_I2P_OPTIONS_DEFAULT SAM_DEFAULT_I2P_OPTIONS
|
||||
#define I2P_SAM_I2P_OPTIONS_DEFAULT SAM_NAME_I2CP_LEASESET_ENC_TYPE "=" SAM_DEFAULT_I2CP_LEASESET_ENC_TYPE // i2cp.leaseSetEncType=0,4
|
||||
|
||||
#define I2P_SAM_GENERATE_DESTINATION_PARAM "-generatei2pdestination"
|
||||
|
||||
|
@ -62,6 +62,8 @@
|
||||
#define SAM_DEFAULT_OUTBOUND_IPRESTRICTION 2
|
||||
#define SAM_NAME_OUTBOUND_PRIORITY "outbound.priority"
|
||||
#define SAM_DEFAULT_OUTBOUND_PRIORITY 0
|
||||
#define SAM_NAME_I2CP_LEASESET_ENC_TYPE "i2cp.leaseSetEncType"
|
||||
#define SAM_DEFAULT_I2CP_LEASESET_ENC_TYPE "0,4"
|
||||
|
||||
namespace SAM
|
||||
{
|
||||
|
@ -173,6 +173,7 @@ void OptionsModel::Init()
|
||||
FormatI2POptionsString(i2pOptionsTemp, SAM_NAME_OUTBOUND_ALLOWZEROHOP , std::make_pair(settings.contains(SAM_NAME_OUTBOUND_ALLOWZEROHOP ), i2pOutboundAllowZeroHop));
|
||||
FormatI2POptionsString(i2pOptionsTemp, SAM_NAME_OUTBOUND_IPRESTRICTION , std::make_pair(settings.contains(SAM_NAME_OUTBOUND_IPRESTRICTION ), i2pOutboundIPRestriction));
|
||||
FormatI2POptionsString(i2pOptionsTemp, SAM_NAME_OUTBOUND_PRIORITY , std::make_pair(settings.contains(SAM_NAME_OUTBOUND_PRIORITY ), i2pOutboundPriority));
|
||||
FormatI2POptionsString(i2pOptionsTemp, SAM_NAME_I2CP_LEASESET_ENC_TYPE, std::make_pair(true, std::string (SAM_DEFAULT_I2CP_LEASESET_ENC_TYPE))); // i2cp.leaseSetEncType=0,4 TODO: make it configurable
|
||||
|
||||
if (!i2pOptionsTemp.empty())
|
||||
SoftSetArg(I2P_SAM_I2P_OPTIONS_PARAM, i2pOptionsTemp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user