mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-23 23:55:35 +02:00
pass our address as boost's address
This commit is contained in:
parent
d513f20225
commit
a3fd338fab
5 changed files with 14 additions and 15 deletions
4
SSU.cpp
4
SSU.cpp
|
@ -217,7 +217,7 @@ namespace transport
|
|||
s.Insert (payload, 2); // our port
|
||||
payload += 2; // port
|
||||
LogPrint ("Our external address is ", ourIP.to_string (), ":", ourPort);
|
||||
i2p::context.UpdateAddress (ourIP.to_string ().c_str ());
|
||||
i2p::context.UpdateAddress (ourIP);
|
||||
if (m_RemoteEndpoint.address ().is_v4 ())
|
||||
s.Insert (m_RemoteEndpoint.address ().to_v4 ().to_bytes ().data (), 4); // remote IP v4
|
||||
else
|
||||
|
@ -575,7 +575,7 @@ namespace transport
|
|||
uint16_t ourPort = be16toh (*(uint16_t *)(payload));
|
||||
payload += 2; // our port
|
||||
LogPrint ("Our external address is ", ourIP.to_string (), ":", ourPort);
|
||||
i2p::context.UpdateAddress (ourIP.to_string ().c_str ());
|
||||
i2p::context.UpdateAddress (ourIP);
|
||||
}
|
||||
|
||||
void SSUSession::ProcessRelayIntro (uint8_t * buf, size_t len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue