From d49d5df018335f1525833731df24bcbc1b814345 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Wed, 13 Jan 2021 16:00:55 -0800 Subject: [PATCH] Fix protocol selection in C# wrapper Socket() method --- examples/csharp/Socket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/csharp/Socket.cs b/examples/csharp/Socket.cs index e232710..f50414f 100644 --- a/examples/csharp/Socket.cs +++ b/examples/csharp/Socket.cs @@ -82,10 +82,10 @@ namespace ZeroTier switch (protocolType) { case ProtocolType.Udp: - protocol = Constants.IPPROTO_TCP; + protocol = Constants.IPPROTO_UDP; break; case ProtocolType.Tcp: - protocol = Constants.IPPROTO_UDP; + protocol = Constants.IPPROTO_TCP; break; case ProtocolType.Unspecified: protocol = 0; // ?