From 32941478d7cb87147ed3478d1e3daf7de5b9968f Mon Sep 17 00:00:00 2001 From: York Xiang Date: Fri, 16 Jan 2015 23:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=92=E5=8F=B7=E5=86=99=E6=88=90=E9=80=97?= =?UTF-8?q?=E5=8F=B7=E4=BA=86=EF=BC=8C=E6=88=91=E9=94=99=E4=BA=86=E2=80=A6?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shadowsocks-csharp/Model/Server.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shadowsocks-csharp/Model/Server.cs b/shadowsocks-csharp/Model/Server.cs index 18f28aff..00209d11 100755 --- a/shadowsocks-csharp/Model/Server.cs +++ b/shadowsocks-csharp/Model/Server.cs @@ -71,9 +71,9 @@ namespace Shadowsocks.Model int indexLastAt = data.LastIndexOf('@'); string afterAt = data.Substring(indexLastAt + 1); - int indexLastComma = afterAt.LastIndexOf(':'); - this.server_port = int.Parse(afterAt.Substring(indexLastComma + 1)); - this.server = afterAt.Substring(0, indexLastComma); + int indexLastColon = afterAt.LastIndexOf(':'); + this.server_port = int.Parse(afterAt.Substring(indexLastColon + 1)); + this.server = afterAt.Substring(0, indexLastColon); string beforeAt = data.Substring(0, indexLastAt); string[] parts = beforeAt.Split(new[] { ':' });