mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show local SSU2 address
This commit is contained in:
parent
f184f550b9
commit
6eba061c2a
4 changed files with 19 additions and 8 deletions
|
@ -346,7 +346,12 @@ namespace i2p
|
|||
}
|
||||
if (enable && !found)
|
||||
{
|
||||
m_RouterInfo.AddSSU2Address (m_SSU2Keys->staticPublicKey);
|
||||
uint8_t addressCaps = 0;
|
||||
bool ipv4; i2p::config::GetOption("ipv4", ipv4);
|
||||
bool ipv6; i2p::config::GetOption("ipv6", ipv6);
|
||||
if (ipv4) addressCaps |= i2p::data::RouterInfo::AddressCaps::eV4;
|
||||
if (ipv6) addressCaps |= i2p::data::RouterInfo::AddressCaps::eV6;
|
||||
m_RouterInfo.AddSSU2Address (m_SSU2Keys->staticPublicKey, addressCaps);
|
||||
updated = true;
|
||||
}
|
||||
if (updated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue