mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Update Assigning unicast IP strings,translate
This commit is contained in:
@@ -91,15 +91,15 @@ public class TUNController : Guard, IModeController
|
||||
var tunIndex = _tunNetworkInterface.GetIndex();
|
||||
_tun = NetRoute.TemplateBuilder(_tunConfig.Gateway, tunIndex);
|
||||
|
||||
Global.MainForm.StatusText(i18N.Translate("Assign Unicast IP"));
|
||||
Global.MainForm.StatusText(i18N.Translate("Assigning unicast IP"));
|
||||
if (!await Task.Run(() => RouteHelper.CreateUnicastIP(AddressFamily.InterNetwork,
|
||||
_tunConfig.Address,
|
||||
(byte)Utils.Utils.SubnetToCidr(_tunConfig.Netmask),
|
||||
(ulong)tunIndex))
|
||||
)
|
||||
{
|
||||
Log.Error("Create Unicast IP failed");
|
||||
throw new MessageException("Create Unicast IP failed");
|
||||
Log.Error("Create unicast IP failed");
|
||||
throw new MessageException("Create unicast IP failed");
|
||||
}
|
||||
|
||||
await SetupRouteTableAsync();
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"Updating servers": "正在更新服务器",
|
||||
"Servers updated": "服务器更新完毕",
|
||||
"Installing netfilter2 driver": "正在安装 netfilter2 驱动",
|
||||
"Assigning unicast IP": "正在分配单播 IP",
|
||||
|
||||
"Server": "服务器",
|
||||
"Import Servers From Clipboard": "从剪贴板导入服务器",
|
||||
|
||||
Reference in New Issue
Block a user