Browse Source

send data message wih raw type fpr raw datagrams

pull/1389/head
orignal 5 years ago
parent
commit
a090114066
  1. 2
      libi2pd/Datagram.cpp

2
libi2pd/Datagram.cpp

@ -133,7 +133,7 @@ namespace datagram @@ -133,7 +133,7 @@ namespace datagram
htobe32buf (msg->GetPayload (), size); // length
htobe16buf (buf + 4, fromPort); // source port
htobe16buf (buf + 6, toPort); // destination port
buf[9] = isRaw ? i2p::client::PROTOCOL_TYPE_DATAGRAM : i2p::client::PROTOCOL_TYPE_DATAGRAM; // raw or datagram protocol
buf[9] = isRaw ? i2p::client::PROTOCOL_TYPE_RAW : i2p::client::PROTOCOL_TYPE_DATAGRAM; // raw or datagram protocol
msg->len += size + 4;
msg->FillI2NPMessageHeader (eI2NPData);
}

Loading…
Cancel
Save