mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-19 05:26:54 +02:00
move this
This commit is contained in:
parent
161ed18e48
commit
59b2f73541
1 changed files with 1 additions and 1 deletions
|
@ -271,8 +271,8 @@ struct TcpProxyService
|
|||
Client &c = *((Client *)*uptr);
|
||||
if (c.tcpWritePtr) {
|
||||
long n = phy->streamSend(sock,c.tcpWriteBuf,c.tcpWritePtr);
|
||||
Metrics::tcp_bytes_out += n;
|
||||
if (n > 0) {
|
||||
Metrics::tcp_bytes_out += n;
|
||||
memmove(c.tcpWriteBuf,c.tcpWriteBuf + n,c.tcpWritePtr -= (unsigned long)n);
|
||||
if (!c.tcpWritePtr)
|
||||
phy->setNotifyWritable(sock,false);
|
||||
|
|
Loading…
Add table
Reference in a new issue