|
@@ -11,7 +11,7 @@ namespace Shadowsocks.Model |
|
|
public class Server
|
|
|
public class Server
|
|
|
{
|
|
|
{
|
|
|
public static readonly Regex
|
|
|
public static readonly Regex
|
|
|
UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>.+))?", RegexOptions.IgnoreCase),
|
|
|
|
|
|
|
|
|
UrlFinder = new Regex(@"ss://(?<base64>[A-Za-z0-9+-/=_]+)(?:#(?<tag>\S+))?", RegexOptions.IgnoreCase),
|
|
|
DetailsParser = new Regex(@"^((?<method>.+?):(?<password>.*)@(?<hostname>.+?):(?<port>\d+?))$", RegexOptions.IgnoreCase);
|
|
|
DetailsParser = new Regex(@"^((?<method>.+?):(?<password>.*)@(?<hostname>.+?):(?<port>\d+?))$", RegexOptions.IgnoreCase);
|
|
|
|
|
|
|
|
|
private const int DefaultServerTimeoutSec = 5;
|
|
|
private const int DefaultServerTimeoutSec = 5;
|
|
|