From c703aba3914b4828f24a24aeb4fab75732627db5 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Sun, 17 May 2026 17:54:49 +0800 Subject: [PATCH] Rename tun tag --- v2rayN/ServiceLib/Sample/SampleTunInbound | 2 +- v2rayN/ServiceLib/Sample/tun_singbox_inbound | 2 +- .../ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2rayN/ServiceLib/Sample/SampleTunInbound b/v2rayN/ServiceLib/Sample/SampleTunInbound index e9ac95e7..95cefbc1 100644 --- a/v2rayN/ServiceLib/Sample/SampleTunInbound +++ b/v2rayN/ServiceLib/Sample/SampleTunInbound @@ -1,5 +1,5 @@ { - "tag": "tun-in", + "tag": "tun", "protocol": "tun", "settings": { "name": "xray_tun", diff --git a/v2rayN/ServiceLib/Sample/tun_singbox_inbound b/v2rayN/ServiceLib/Sample/tun_singbox_inbound index db5b0b32..b23346c1 100644 --- a/v2rayN/ServiceLib/Sample/tun_singbox_inbound +++ b/v2rayN/ServiceLib/Sample/tun_singbox_inbound @@ -1,6 +1,6 @@ { "type": "tun", - "tag": "tun-in", + "tag": "tun", "interface_name": "singbox_tun", "address": [ "172.18.0.1/30", diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs index 5ad9ed9e..c3bcf616 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayRoutingService.cs @@ -27,7 +27,7 @@ public partial class CoreConfigV2rayService }); _coreConfig.routing.rules.Add(new() { - inboundTag = ["tun-in"], + inboundTag = ["tun"], port = "53", outboundTag = Global.DnsOutboundTag, });