Browse Source

Fix protocol selection in C# wrapper Socket() method

pull/8/head
Joseph Henry 5 years ago
parent
commit
d49d5df018
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344
  1. 4
      examples/csharp/Socket.cs

4
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; // ?

Loading…
Cancel
Save