- drop unused using directive - add a comment Signed-off-by: Syrone Wong <wong.syrone@gmail.com>tags/3.3
@@ -1,5 +1,4 @@ | |||||
using System.Security.Cryptography; | |||||
using System.Text; | |||||
using System.Text; | |||||
namespace Shadowsocks.Encryption | namespace Shadowsocks.Encryption | ||||
{ | { | ||||
@@ -1,7 +1,7 @@ | |||||
| |||||
using System; | |||||
using System; | |||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Reflection; | using System.Reflection; | ||||
namespace Shadowsocks.Encryption | namespace Shadowsocks.Encryption | ||||
{ | { | ||||
public static class EncryptorFactory | public static class EncryptorFactory | ||||
@@ -1,6 +1,4 @@ | |||||
using System; | using System; | ||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace Shadowsocks.Encryption | namespace Shadowsocks.Encryption | ||||
{ | { | ||||
@@ -1,9 +1,6 @@ | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
using System.Security.Cryptography; | |||||
using System.Text; | |||||
using System.Threading; | |||||
namespace Shadowsocks.Encryption | namespace Shadowsocks.Encryption | ||||
{ | { | ||||
@@ -1,7 +1,5 @@ | |||||
using System; | using System; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Text; | |||||
using System.Threading; | |||||
namespace Shadowsocks.Encryption | namespace Shadowsocks.Encryption | ||||
{ | { | ||||
@@ -52,6 +52,7 @@ namespace Shadowsocks.Util | |||||
if (endPoint is DnsEndPoint) | if (endPoint is DnsEndPoint) | ||||
{ | { | ||||
// use dual-mode socket | |||||
var socket = new Socket(AddressFamily.InterNetworkV6, socketType, protocolType); | var socket = new Socket(AddressFamily.InterNetworkV6, socketType, protocolType); | ||||
socket.SetSocketOption(SocketOptionLevel.IPv6, (SocketOptionName)27, false); | socket.SetSocketOption(SocketOptionLevel.IPv6, (SocketOptionName)27, false); | ||||