mirror of
https://github.com/netchx/netch.git
synced 2026-03-30 19:09:48 +08:00
fix: mode 2 try to delete 0.0.0.0/0 route entry twice
This commit is contained in:
@@ -210,11 +210,6 @@ namespace Netch.Controllers
|
||||
/// </summary>
|
||||
private bool ClearRouteTable()
|
||||
{
|
||||
if (_savedMode.Type == 2)
|
||||
{
|
||||
RouteAction(Action.Delete, IPNetwork.Parse("0.0.0.0", 0), RouteType.TUNTAP);
|
||||
}
|
||||
|
||||
RouteAction(Action.Delete, _directIPs, RouteType.Outbound);
|
||||
RouteAction(Action.Delete, _proxyIPs, RouteType.TUNTAP);
|
||||
_directIPs.Clear();
|
||||
|
||||
Reference in New Issue
Block a user