Update Assigning unicast IP strings,translate

This commit is contained in:
ChsBuffer
2021-11-13 20:59:19 +08:00
parent a0cbd4b46c
commit 222ad80b37
2 changed files with 4 additions and 3 deletions

View File

@@ -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();

View File

@@ -21,6 +21,7 @@
"Updating servers": "正在更新服务器",
"Servers updated": "服务器更新完毕",
"Installing netfilter2 driver": "正在安装 netfilter2 驱动",
"Assigning unicast IP": "正在分配单播 IP",
"Server": "服务器",
"Import Servers From Clipboard": "从剪贴板导入服务器",