From 504e716f976bdcad2480d2617cae16b819de861d Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 23 Aug 2023 09:32:40 -0700 Subject: [PATCH 1/3] Fix selftest build badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32114537..34030d92 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Peer-to-peer and cross-platform encrypted connections built right into your app latest libzt version Last Commit -Build Status (master branch) +Build Status (master branch) | Language/Platform | Installation | Version | Example | From c21f66a78f660075bee06d7ffceecb771c9b8dc0 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 23 Aug 2023 10:08:29 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 34030d92..e1d21619 100644 --- a/README.md +++ b/README.md @@ -4,25 +4,23 @@ Part of the ZeroTier SDK -Peer-to-peer and cross-platform encrypted connections built right into your app or service. No drivers, no root, and no host configuration. +P2P cross-platform encrypted sockets library using ZeroTier
Examples | -Documentation | -Report a Bug - +Docs | +Report an issue @zerotier r/zerotier - latest libzt version Last Commit Build Status (master branch) -| Language/Platform | Installation | Version | Example | +| Language/Platform | Install | Version | Example | |:----------|:---------|:---|:---| | C/C++ | [Build from source](#build-from-source) | version| [C/C++](./examples/c) | | C# | `Install-Package ZeroTier.Sockets` | |[C#](./examples/csharp) | @@ -51,7 +49,7 @@ int main() } ``` -# Build from source +# Build from source (optional) ``` git submodule update --init @@ -88,11 +86,9 @@ Important directories: |`cache`| Contains build system caches that can safely be deleted after use.| |`pkg`| Contains project, script and spec files to generate packages.| -# Self-hosting (Optional) - -We provide ways for your app or enterprise to function independently from any of our services if desired. +# Self-hosting -While we do operate a global network of redundant root servers, network controllers and an admin API/UI called [Central](https://my.zerotier.com), some use-cases require full control over the infrastructure and we try to make it as easy as possible to set up your own controllers and root servers: See [here](https://github.com/zerotier/ZeroTierOne/tree/main/controller) to learn more about how to set up your own network controller, and [here](https://docs.zerotier.com/zerotier/moons) to learn more about setting up your own roots. +If you'd like to use your own infrastructure we make it easy to [set up your own controllers and roots](https://docs.zerotier.com/self-hosting/introduction). # Help From 2ba5e6b90da696d67da29ce291d0bad9d420e7ae Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 23 Aug 2023 10:14:28 -0700 Subject: [PATCH 3/3] Remove vestigial version file --- include/version.h | 7 ------- src/NodeService.cpp | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 include/version.h diff --git a/include/version.h b/include/version.h deleted file mode 100644 index 689ae8ab..00000000 --- a/include/version.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef ZTS_VERSION_H -#define ZTS_VER_CORE_STR = "1.4.6" -#define ZTS_VER_LIB_STR = "1.3.4" -#define ZTS_VER_LIB_MAJOR = 1.3.4 -#define ZTS_VER_LIB_MINOR = 1.3.4 -#define ZTS_VER_LIB_PATCH = 1.3.4 -#endif diff --git a/src/NodeService.cpp b/src/NodeService.cpp index 501bc13c..036f4060 100644 --- a/src/NodeService.cpp +++ b/src/NodeService.cpp @@ -21,7 +21,6 @@ #include "NodeService.hpp" -#include "../version.h" #include "Events.hpp" #include "InetAddress.hpp" #include "Mutex.hpp" @@ -960,7 +959,7 @@ void NodeService::sendEventToUser(unsigned int zt_event_code, const void* obj, u zts_node_info_t* nd; zts_net_info_t* nt; zts_peer_info_t* pr; - + switch (zt_event_code) { case ZTS_EVENT_NODE_UP: case ZTS_EVENT_NODE_ONLINE: