From a0c4dd3192cfec147069275b4a4fe81245f8dfb9 Mon Sep 17 00:00:00 2001
From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com>
Date: Sun, 10 Jan 2021 20:58:49 +0800
Subject: [PATCH] Replace NetchCore with RouteHelper
---
Netch/NativeMethods.cs | 4 ++--
binaries | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Netch/NativeMethods.cs b/Netch/NativeMethods.cs
index 510509f1..4dd0b886 100644
--- a/Netch/NativeMethods.cs
+++ b/Netch/NativeMethods.cs
@@ -13,7 +13,7 @@ namespace Netch
/// 适配器索引
/// 跃点数
/// 是否成功
- [DllImport("NetchCore", CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateRoute")]
+ [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl, EntryPoint = "CreateRoute")]
public static extern bool CreateRoute(string address, int cidr, string gateway, int index, int metric = 0);
///
@@ -25,7 +25,7 @@ namespace Netch
/// 适配器索引
/// 跃点数
/// 是否成功
- [DllImport("NetchCore", CallingConvention = CallingConvention.Cdecl, EntryPoint = "DeleteRoute")]
+ [DllImport("RouteHelper.bin", CallingConvention = CallingConvention.Cdecl, EntryPoint = "DeleteRoute")]
public static extern bool DeleteRoute(string address, int cidr, string gateway, int index, int metric = 0);
[DllImport("dnsapi", EntryPoint = "DnsFlushResolverCache")]
diff --git a/binaries b/binaries
index 7b5ce306..5c1f0e6e 160000
--- a/binaries
+++ b/binaries
@@ -1 +1 @@
-Subproject commit 7b5ce30669a97b655a0ee90741d18d5d275d4204
+Subproject commit 5c1f0e6e509886c14d20185a102db2dcba87b802