mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Update TUNController
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Netch.Controllers
|
||||
StartInstanceAuto(parameter.ToString());
|
||||
_tunAdapter = new TunAdapter();
|
||||
|
||||
NativeMethods.CreateUnicastIP((int)AddressFamily.InterNetwork, "100.64.0.100", 24, _tunAdapter.InterfaceIndex);
|
||||
NativeMethods.CreateUnicastIP((int)AddressFamily.InterNetwork, Global.Settings.WinTUN.Address, 24, _tunAdapter.InterfaceIndex);
|
||||
SetupRouteTable(mode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user