Browse Source

Cleanup

- drop unused using directive
- add a comment

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
tags/3.3
Syrone Wong 8 years ago
parent
commit
8637277c27
6 changed files with 4 additions and 11 deletions
  1. +1
    -2
      shadowsocks-csharp/Encryption/EncryptorBase.cs
  2. +2
    -2
      shadowsocks-csharp/Encryption/EncryptorFactory.cs
  3. +0
    -2
      shadowsocks-csharp/Encryption/IEncryptor.cs
  4. +0
    -3
      shadowsocks-csharp/Encryption/MbedTLSEncryptor.cs
  5. +0
    -2
      shadowsocks-csharp/Encryption/SodiumEncryptor.cs
  6. +1
    -0
      shadowsocks-csharp/Util/SocketUtil.cs

+ 1
- 2
shadowsocks-csharp/Encryption/EncryptorBase.cs View File

@@ -1,5 +1,4 @@
using System.Security.Cryptography;
using System.Text;
using System.Text;
namespace Shadowsocks.Encryption
{


+ 2
- 2
shadowsocks-csharp/Encryption/EncryptorFactory.cs View File

@@ -1,7 +1,7 @@

using System;
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Shadowsocks.Encryption
{
public static class EncryptorFactory


+ 0
- 2
shadowsocks-csharp/Encryption/IEncryptor.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Shadowsocks.Encryption
{


+ 0
- 3
shadowsocks-csharp/Encryption/MbedTLSEncryptor.cs View File

@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Threading;
namespace Shadowsocks.Encryption
{


+ 0
- 2
shadowsocks-csharp/Encryption/SodiumEncryptor.cs View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Shadowsocks.Encryption
{


+ 1
- 0
shadowsocks-csharp/Util/SocketUtil.cs View File

@@ -52,6 +52,7 @@ namespace Shadowsocks.Util

if (endPoint is DnsEndPoint)
{
// use dual-mode socket
var socket = new Socket(AddressFamily.InterNetworkV6, socketType, protocolType);
socket.SetSocketOption(SocketOptionLevel.IPv6, (SocketOptionName)27, false);



Loading…
Cancel
Save