mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-22 12:32:27 +00:00
select proper SSU address for incoming sessions
This commit is contained in:
1 parent
67001e1696
commit
54ec71d30d
3 files changed
+11
-4
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user