mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
handle local destination port
This commit is contained in:
parent
ac57e7ced2
commit
0f8ea92a53
5 changed files with 15 additions and 9 deletions
|
@ -661,7 +661,7 @@ namespace stream
|
|||
htobe32buf (buf, size); // length
|
||||
buf += 4;
|
||||
compressor.Get (buf, size);
|
||||
htobuf16(buf + 4, 0); // source port
|
||||
htobe16buf (buf + 4, m_LocalDestination.GetLocalPort ()); // source port
|
||||
htobe16buf (buf + 6, m_Port); // destination port
|
||||
buf[9] = i2p::client::PROTOCOL_TYPE_STREAMING; // streaming protocol
|
||||
msg->len += size + 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue