Browse Source

handle'\r\n' terminated address from Transmission

pull/583/head
orignal 8 years ago
parent
commit
061720bcf0
  1. 2
      BOB.cpp

2
BOB.cpp

@ -70,7 +70,7 @@ namespace client @@ -70,7 +70,7 @@ namespace client
if (eol)
{
*eol = 0;
if (eol != receiver->buffer && eol[-1] == '\r') eol[-1] = 0; // workaround for Transmission, it sends '\r\n' terminated address
receiver->data = (uint8_t *)eol + 1;
receiver->dataLen = receiver->bufferOffset - (eol - receiver->buffer + 1);
i2p::data::IdentHash ident;

Loading…
Cancel
Save