Browse Source

fix ss URL bug with no padding base64 (#700)

tags/3.3
破娃酱 Syrone Wong 8 years ago
parent
commit
d73b77ff88
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      shadowsocks-csharp/Model/Server.cs

+ 1
- 1
shadowsocks-csharp/Model/Server.cs View File

@@ -10,7 +10,7 @@ namespace Shadowsocks.Model
public class Server
{
public static readonly Regex
UrlFinder = new Regex("^ss://((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)$",
UrlFinder = new Regex("^ss://((?:[A-Za-z0-9+/]+)|((?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?))$",
RegexOptions.Compiled | RegexOptions.IgnoreCase),
DetailsParser = new Regex("^((?<method>.+?)(?<auth>-auth)??:(?<password>.*)@(?<hostname>.+?)" +
":(?<port>\\d+?))$", RegexOptions.Compiled | RegexOptions.IgnoreCase);


Loading…
Cancel
Save