summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/auto-format.yml2
-rw-r--r--examples/csharp/example.cs6
-rw-r--r--pkg/nuget/ZeroTier.Sockets/nuget.org.md20
3 files changed, 8 insertions, 20 deletions
diff --git a/.github/workflows/auto-format.yml b/.github/workflows/auto-format.yml
index e583ac5..dae8213 100644
--- a/.github/workflows/auto-format.yml
+++ b/.github/workflows/auto-format.yml
@@ -20,5 +20,5 @@ jobs:
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
- message: 'Code style fixes'
+ message: 'Code style enforcement'
add: '.'
diff --git a/examples/csharp/example.cs b/examples/csharp/example.cs
index 7722aaf..a24cbc2 100644
--- a/examples/csharp/example.cs
+++ b/examples/csharp/example.cs
@@ -26,13 +26,16 @@ public class ExampleApp {
// node.InitAllowIdentityCaching(true);
// node.InitAllowWorldCaching(false);
node.InitSetEventHandler(OnZeroTierEvent);
- node.InitSetPort(0); // Will randomly attempt ports if set to 0
+ //node.InitSetPort(0); // Will randomly attempt ports if not specified or is set to 0
+ node.InitSetRandomPortRange(40000, 50000);
+ // node.InitAllowSecondaryPort(false);
// (OPTIONAL) Set custom signed roots
// In this case we only allow ZeroTier to contact our Amsterdam root server
// To see examples of how to generate and sign roots definitions see docs.zerotier.com
+ /*
var rootsData = new byte[] {
0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0xea, 0xc9, 0x0a, 0x00, 0x00, 0x01, 0x6c, 0xe3, 0xe2, 0x39, 0x55, 0x74,
0xeb, 0x27, 0x9d, 0xc9, 0xe7, 0x5a, 0x52, 0xbb, 0x91, 0x8f, 0xf7, 0x43, 0x3c, 0xbf, 0x77, 0x5a, 0x4b, 0x57,
@@ -52,6 +55,7 @@ public class ExampleApp {
0x00, 0x00, 0x00, 0x00, 0x27, 0x09
};
node.InitSetRoots(rootsData, rootsData.Length);
+ */
node.Start(); // Network activity only begins after calling Start()
while (! node.Online) {
diff --git a/pkg/nuget/ZeroTier.Sockets/nuget.org.md b/pkg/nuget/ZeroTier.Sockets/nuget.org.md
index 527b2b1..e8de898 100644
--- a/pkg/nuget/ZeroTier.Sockets/nuget.org.md
+++ b/pkg/nuget/ZeroTier.Sockets/nuget.org.md
@@ -1,5 +1,6 @@
-[ZeroTier](https://www.zerotier.com)
+[ZeroTier.Sockets](https://www.zerotier.com)
=====
+Part of the [ZeroTier SDK](https://github.com/zerotier/libzt)
Securely connect application instances, physical devices, and virtual devices as if everything is on a single LAN. ZeroTier brings your network into user-space. No root, and no host configuration requirements.
@@ -11,20 +12,3 @@ We've paired our network hyper-visor core with a TCP/UDP/IP stack [(lwIP)](https
- SDK Repo: https://github.com/zerotier/libzt
- Forum: https://discuss.zerotier.com
-## 1.3.4 Release Notes
-
-### Added:
- - IPv6 Support
- - `Socket.ReceiveTimeout`
- - `Socket.SendTimeout`
- - `Socket.ConnectTimeout`
- - `Socket.SendBufferSize`
- - `Socket.ReceiveBufferSize`
- - `Socket.Ttl`
- - `Socket.LingerState`
- - `Socket.KeepAlive`
- - `Socket.NoDelay`
- - `Socket.Blocking`
-
-### Bugfixes:
- - Minor C API fixes