mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
pass X-I2P_DestB32 and X-I2P-DestB64
This commit is contained in:
parent
36750ab900
commit
18914978d5
@ -196,8 +196,9 @@ namespace client
|
|||||||
// add X-I2P fields
|
// add X-I2P fields
|
||||||
if (m_From)
|
if (m_From)
|
||||||
{
|
{
|
||||||
|
m_OutHeader << X_I2P_DEST_B32 << ": " << context.GetAddressBook ().ToAddress(m_From->GetIdentHash ()) << "\r\n";
|
||||||
m_OutHeader << X_I2P_DEST_HASH << ": " << m_From->GetIdentHash ().ToBase64 () << "\r\n";
|
m_OutHeader << X_I2P_DEST_HASH << ": " << m_From->GetIdentHash ().ToBase64 () << "\r\n";
|
||||||
// m_OutHeader << X_I2P_DEST_B64 << ": " << m_From->ToBase64 () << "\r\n";
|
m_OutHeader << X_I2P_DEST_B64 << ": " << m_From->ToBase64 () << "\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (endOfHeader)
|
if (endOfHeader)
|
||||||
|
@ -21,8 +21,8 @@ namespace client
|
|||||||
const int I2P_TUNNEL_DESTINATION_REQUEST_TIMEOUT = 10; // in seconds
|
const int I2P_TUNNEL_DESTINATION_REQUEST_TIMEOUT = 10; // in seconds
|
||||||
// for HTTP tunnels
|
// for HTTP tunnels
|
||||||
const char X_I2P_DEST_HASH[] = "X-I2P-DestHash"; // hash in base64
|
const char X_I2P_DEST_HASH[] = "X-I2P-DestHash"; // hash in base64
|
||||||
//const char X_I2P_DEST_B64[] = "X-I2P-DestB64"; // full address in base64
|
const char X_I2P_DEST_B64[] = "X-I2P-DestB64"; // full address in base64
|
||||||
//const char X_I2P_DEST_B32[] = "X-I2P-DestB32"; // full address in base32
|
const char X_I2P_DEST_B32[] = "X-I2P-DestB32"; // .b32.i2p address
|
||||||
|
|
||||||
class I2PTunnelConnection: public I2PServiceHandler, public std::enable_shared_from_this<I2PTunnelConnection>
|
class I2PTunnelConnection: public I2PServiceHandler, public std::enable_shared_from_this<I2PTunnelConnection>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user