|
|
@ -162,7 +162,13 @@ namespace i2p |
|
|
|
{ |
|
|
|
{ |
|
|
|
// create new address
|
|
|
|
// create new address
|
|
|
|
m_RouterInfo.AddNTCPAddress (host.to_string ().c_str (), port); |
|
|
|
m_RouterInfo.AddNTCPAddress (host.to_string ().c_str (), port); |
|
|
|
m_RouterInfo.AddSSUAddress (host.to_string ().c_str (), port, GetIdentHash (), 1472); // TODO
|
|
|
|
auto mtu = i2p::util::net::GetMTU (host); |
|
|
|
|
|
|
|
if (mtu) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint ("Our v6 MTU=", mtu); |
|
|
|
|
|
|
|
if (mtu > 1472) mtu = 1472; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
m_RouterInfo.AddSSUAddress (host.to_string ().c_str (), port, GetIdentHash (), mtu ? mtu : 1472); // TODO
|
|
|
|
updated = true; |
|
|
|
updated = true; |
|
|
|
} |
|
|
|
} |
|
|
|
if (updated) |
|
|
|
if (updated) |
|
|
|