mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-13 11:17:53 +00: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)
|
||||
{
|
||||
*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…
Reference in New Issue
Block a user