mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
handle'\r\n' terminated address from Transmission
This commit is contained in:
parent
11585327bf
commit
061720bcf0
2
BOB.cpp
2
BOB.cpp
@ -70,7 +70,7 @@ namespace client
|
|||||||
if (eol)
|
if (eol)
|
||||||
{
|
{
|
||||||
*eol = 0;
|
*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->data = (uint8_t *)eol + 1;
|
||||||
receiver->dataLen = receiver->bufferOffset - (eol - receiver->buffer + 1);
|
receiver->dataLen = receiver->bufferOffset - (eol - receiver->buffer + 1);
|
||||||
i2p::data::IdentHash ident;
|
i2p::data::IdentHash ident;
|
||||||
|
Loading…
Reference in New Issue
Block a user