冒号写成逗号了,我错了……

This commit is contained in:
York Xiang
2015-01-16 23:19:19 +08:00
parent 3aa325edec
commit 32941478d7
+3 -3
View File
@@ -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[] { ':' });