mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02:00
tcp-proxy: fix build
This commit is contained in:
parent
5a36b315a3
commit
19f1f02d91
2 changed files with 5 additions and 0 deletions
|
@ -50,7 +50,9 @@
|
|||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
|
||||
#ifndef ZT_NO_METRICS
|
||||
#include "../node/Metrics.hpp"
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
|
||||
#ifndef IPV6_DONTFRAG
|
||||
|
@ -476,7 +478,9 @@ public:
|
|||
sizeof(struct sockaddr_in)) == (long)len);
|
||||
#endif
|
||||
if (sent) {
|
||||
#ifndef ZT_NO_METRICS
|
||||
Metrics::udp_send += len;
|
||||
#endif
|
||||
}
|
||||
|
||||
return sent;
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#define ZT_NO_METRICS 1
|
||||
#include "../osdep/Phy.hpp"
|
||||
|
||||
#define ZT_TCP_PROXY_CONNECTION_TIMEOUT_SECONDS 300
|
||||
|
|
Loading…
Add table
Reference in a new issue