Browse Source

remove ZT_NO_METRIC ifdef

pull/4/head
travisladuke 3 years ago committed by Travis LaDuke
parent
commit
50ede37a58
  1. 4
      osdep/Phy.hpp
  2. 4
      tcp-proxy/tcp-proxy.cpp

4
osdep/Phy.hpp

@ -50,9 +50,7 @@
#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
@ -478,9 +476,7 @@ public:
sizeof(struct sockaddr_in)) == (long)len);
#endif
if (sent) {
#ifndef ZT_NO_METRICS
Metrics::udp_send += len;
#endif
}
return sent;

4
tcp-proxy/tcp-proxy.cpp

@ -41,13 +41,9 @@
#include <algorithm>
#include <vector>
#define ZT_NO_METRICS 1
#include "../osdep/Phy.hpp"
#ifndef ZT_NO_METRICS
#include "../node/Metrics.hpp"
#endif
#define ZT_TCP_PROXY_CONNECTION_TIMEOUT_SECONDS 300
#define ZT_TCP_PROXY_TCP_PORT 443

Loading…
Cancel
Save