mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-09 20:12:50 +00:00
Adjust tcp-proxy makefile to support metrics
There's no way to get the metrics yet. Someone will have to add the http service.
This commit is contained in:
parent
19f1f02d91
commit
60ddca1354
@ -1,7 +1,9 @@
|
|||||||
CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)
|
CXX=$(shell which clang++ g++ c++ 2>/dev/null | head -n 1)
|
||||||
|
|
||||||
|
INCLUDES?=-I../ext/prometheus-cpp-lite-1.0/core/include -I../ext/prometheus-cpp-lite-1.0/simpleapi/include
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(CXX) -O3 -fno-rtti -o tcp-proxy tcp-proxy.cpp
|
$(CXX) -O3 -fno-rtti $(INCLUDES) -std=c++11 -frtti -o tcp-proxy tcp-proxy.cpp ../node/Metrics.cpp
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o tcp-proxy *.dSYM
|
rm -f *.o tcp-proxy *.dSYM
|
||||||
|
@ -42,8 +42,13 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define ZT_NO_METRICS 1
|
#define ZT_NO_METRICS 1
|
||||||
|
|
||||||
#include "../osdep/Phy.hpp"
|
#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_CONNECTION_TIMEOUT_SECONDS 300
|
||||||
#define ZT_TCP_PROXY_TCP_PORT 443
|
#define ZT_TCP_PROXY_TCP_PORT 443
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user