mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
more
This commit is contained in:
parent
8402e091ed
commit
b4517c4931
@ -267,10 +267,11 @@ namespace llarp
|
||||
// all BSDs have packet info
|
||||
const ssize_t offset = 4;
|
||||
// becuase reasons :^)
|
||||
if(sz <= offset)
|
||||
if(sz < offset)
|
||||
sz = 1500;
|
||||
|
||||
ssize_t ret = ::read(fd, buf, sz);
|
||||
llarp::LogInfo("read ", ret, " of ", sz, " on tun interface");
|
||||
if(ret > offset && t->recvpkt)
|
||||
{
|
||||
buf += offset;
|
||||
|
Loading…
Reference in New Issue
Block a user