diff --git a/Netch/Controllers/TUNController.cs b/Netch/Controllers/TUNController.cs index 00ec7d48..72db20bb 100644 --- a/Netch/Controllers/TUNController.cs +++ b/Netch/Controllers/TUNController.cs @@ -144,7 +144,7 @@ namespace Netch.Controllers if (!Global.Settings.TUNTAP.UseCustomDNS) // bypass AioDNS other dns - RouteUtils.CreateRoute(_tun.FillTemplate(Utils.Utils.GetHostFromUri(Global.Settings.AioDNS.ChinaDNS), 32)); + RouteUtils.CreateRoute(_outbound.FillTemplate(Utils.Utils.GetHostFromUri(Global.Settings.AioDNS.ChinaDNS), 32)); NetworkInterfaceUtils.SetInterfaceMetric(_tun.InterfaceIndex, 0); RouteUtils.CreateRoute(_tun.FillTemplate("0.0.0.0", 0));