Fix protocol selection in C# wrapper Socket() method
This commit is contained in:
@@ -82,10 +82,10 @@ namespace ZeroTier
|
|||||||
switch (protocolType)
|
switch (protocolType)
|
||||||
{
|
{
|
||||||
case ProtocolType.Udp:
|
case ProtocolType.Udp:
|
||||||
protocol = Constants.IPPROTO_TCP;
|
protocol = Constants.IPPROTO_UDP;
|
||||||
break;
|
break;
|
||||||
case ProtocolType.Tcp:
|
case ProtocolType.Tcp:
|
||||||
protocol = Constants.IPPROTO_UDP;
|
protocol = Constants.IPPROTO_TCP;
|
||||||
break;
|
break;
|
||||||
case ProtocolType.Unspecified:
|
case ProtocolType.Unspecified:
|
||||||
protocol = 0; // ?
|
protocol = 0; // ?
|
||||||
|
|||||||
Reference in New Issue
Block a user