mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
temporary disable ip check:
when i2pd s starting, default ip address is set as 127.0.0.1 that causes problem that SSUv4 is not appers after start in RI
This commit is contained in:
parent
21cf4cfe2f
commit
06066a4df5
3 changed files with 21 additions and 13 deletions
|
@ -483,16 +483,22 @@ namespace i2p
|
|||
{
|
||||
// create new address
|
||||
m_RouterInfo.AddNTCPAddress (host.to_string ().c_str (), port);
|
||||
auto mtu = i2p::util::net::GetMTU (host);
|
||||
if (mtu)
|
||||
/*bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||
if (ssu)
|
||||
{
|
||||
LogPrint (eLogDebug, "Router: Our v6 MTU=", mtu);
|
||||
if (mtu > 1472) { // TODO: magic constant
|
||||
mtu = 1472;
|
||||
LogPrint(eLogWarning, "Router: MTU dropped to upper limit of 1472 bytes");
|
||||
auto mtu = i2p::util::net::GetMTU (host);
|
||||
if (mtu)
|
||||
{
|
||||
LogPrint (eLogDebug, "Router: Our v6 MTU=", mtu);
|
||||
if (mtu > 1472) { // TODO: magic constant
|
||||
mtu = 1472;
|
||||
LogPrint(eLogWarning, "Router: MTU dropped to upper limit of 1472 bytes");
|
||||
}
|
||||
}
|
||||
}
|
||||
m_RouterInfo.AddSSUAddress (host.to_string ().c_str (), port, GetIdentHash (), mtu ? mtu : 1472); // TODO
|
||||
else
|
||||
mtu = 1472;
|
||||
m_RouterInfo.AddSSUAddress (host.to_string ().c_str (), port, GetIdentHash (), mtu);
|
||||
}*/
|
||||
updated = true;
|
||||
}
|
||||
if (updated)
|
||||
|
@ -526,7 +532,7 @@ namespace i2p
|
|||
if (!found && port) // we have found NTCP2 v4 but not v6
|
||||
{
|
||||
m_RouterInfo.AddNTCP2Address (m_NTCP2Keys->staticPublicKey, m_NTCP2Keys->iv, host, port);
|
||||
bool ntcp; i2p::config::GetOption("ntcp", ntcp);
|
||||
/*bool ntcp; i2p::config::GetOption("ntcp", ntcp);
|
||||
bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||
if (!ntcp && ssu)
|
||||
{
|
||||
|
@ -544,7 +550,7 @@ namespace i2p
|
|||
else
|
||||
mtu = 1472;
|
||||
m_RouterInfo.AddSSUAddress (host.to_string ().c_str (), port, GetIdentHash (), mtu);
|
||||
}
|
||||
}*/
|
||||
updated = true;
|
||||
}
|
||||
if (updated)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue