CreateUnicastIP timeout

Assign Unicast IP Status Text
This commit is contained in:
ChsBuffer
2021-11-13 14:32:22 +08:00
parent 3264a33e5b
commit 8be7e13aa4
2 changed files with 9 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ public class TUNController : Guard, IModeController
var tunIndex = _tunNetworkInterface.GetIndex();
_tun = NetRoute.TemplateBuilder(_tunConfig.Gateway, tunIndex);
Global.MainForm.StatusText(i18N.Translate("Assign Unicast IP"));
if (!RouteHelper.CreateUnicastIP(AddressFamily.InterNetwork,
_tunConfig.Address,
(byte)Utils.Utils.SubnetToCidr(_tunConfig.Netmask),