Browse Source

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

tags/2.3
York Xiang 9 years ago
parent
commit
32941478d7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      shadowsocks-csharp/Model/Server.cs

+ 3
- 3
shadowsocks-csharp/Model/Server.cs 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[] { ':' });


Loading…
Cancel
Save