Add Socks Protocol string

pull/5636/head
2dust 2024-08-27 16:09:07 +08:00
parent d3c0f50fec
commit ae3ab15245
7 changed files with 22 additions and 3 deletions

View File

@ -60,6 +60,7 @@
public const string InboundAPIProtocol = "dokodemo-door";
public const string HttpProtocol = "http://";
public const string HttpsProtocol = "https://";
public const string SocksProtocol = "socks://";
public const string UserEMail = "t@t.tt";
public const string AutoRunRegPath = @"Software\Microsoft\Windows\CurrentVersion\Run";

View File

@ -289,7 +289,7 @@ namespace ServiceLib.Handler
var coreInfo = CoreInfoHandler.Instance.GetCoreInfo(type);
string url = coreInfo.coreReleaseApiUrl;
var result = await (new DownloadHandler()).DownloadStringAsync(url, true, "");
var result = await (new DownloadHandler()).DownloadStringAsync(url, true, Global.AppName);
if (!Utils.IsNullOrEmpty(result))
{
ResponseHandler(type, result, preRelease);

View File

@ -29,7 +29,7 @@ namespace ServiceLib.Resx {
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
public ResUI() {
internal ResUI() {
}
/// <summary>
@ -1320,6 +1320,15 @@ namespace ServiceLib.Resx {
}
}
/// <summary>
/// 查找类似 Show or hide the main window 的本地化字符串。
/// </summary>
public static string menuShowOrHideMainWindow {
get {
return ResourceManager.GetString("menuShowOrHideMainWindow", resourceCulture);
}
}
/// <summary>
/// 查找类似 Sort by test result 的本地化字符串。
/// </summary>

View File

@ -1270,4 +1270,7 @@
<data name="menuExport2ClientConfigClipboard" xml:space="preserve">
<value>Export selected server for complete configuration to clipboard</value>
</data>
<data name="menuShowOrHideMainWindow" xml:space="preserve">
<value>Show or hide the main window</value>
</data>
</root>

View File

@ -1267,4 +1267,7 @@
<data name="menuExport2ClientConfigClipboard" xml:space="preserve">
<value>导出所选服务器完整配置至剪贴板</value>
</data>
<data name="menuShowOrHideMainWindow" xml:space="preserve">
<value>显示或隐藏主界面</value>
</data>
</root>

View File

@ -1147,4 +1147,7 @@
<data name="menuExport2ClientConfigClipboard" xml:space="preserve">
<value>匯出所選伺服器完整配置至剪貼簿</value>
</data>
<data name="menuShowOrHideMainWindow" xml:space="preserve">
<value>顯示或隱藏主介面</value>
</data>
</root>

View File

@ -658,7 +658,7 @@ namespace ServiceLib.ViewModels
}
}
private void UpdateSubscriptionProcess(string subId, bool blProxy)
public void UpdateSubscriptionProcess(string subId, bool blProxy)
{
(new UpdateHandler()).UpdateSubscriptionProcess(_config, subId, blProxy, UpdateTaskHandler);
}