handle local destination port

This commit is contained in:
orignal 2015-03-01 21:08:34 -05:00
parent ac57e7ced2
commit 0f8ea92a53
5 changed files with 15 additions and 9 deletions

View file

@ -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;