mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
select proper SSU address for incoming sessions
This commit is contained in:
parent
67001e1696
commit
54ec71d30d
3 changed files with 11 additions and 4 deletions
3
SSU.cpp
3
SSU.cpp
|
@ -327,7 +327,8 @@ namespace transport
|
|||
void SSUSession::SendSessionCreated (const uint8_t * x)
|
||||
{
|
||||
auto introKey = GetIntroKey ();
|
||||
auto address = i2p::context.GetRouterInfo ().GetSSUAddress ();
|
||||
auto address = IsV6 () ? i2p::context.GetRouterInfo ().GetSSUV6Address () :
|
||||
i2p::context.GetRouterInfo ().GetSSUAddress (true); //v4 only
|
||||
if (!introKey || !address)
|
||||
{
|
||||
LogPrint (eLogError, "SSU is not supported");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue