From 4419a6bdf0999c6a1e3cbe925d13d22d3383ff20 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 15 Jan 2013 13:56:23 +0800 Subject: [PATCH] Add support of AddressFamily.InterNetworkV6 --- shadowsocks-csharp/Local.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks-csharp/Local.cs b/shadowsocks-csharp/Local.cs index 252fab5c..7eb4cceb 100755 --- a/shadowsocks-csharp/Local.cs +++ b/shadowsocks-csharp/Local.cs @@ -101,7 +101,7 @@ namespace shadowsocks_csharp IPEndPoint remoteEP = new IPEndPoint(ipAddress, config.server_port); - remote = new Socket(AddressFamily.InterNetwork, + remote = new Socket(ipAddress.AddressFamily, SocketType.Stream, ProtocolType.Tcp); // Connect to the remote endpoint.