From 69b3178c13a06d924ba0c4bae5884d73cf977924 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Tue, 9 May 2023 16:14:07 +0800 Subject: [PATCH] remove tun template --- v2rayN/v2rayN/Global.cs | 1 - v2rayN/v2rayN/Sample/tun_singbox | 96 -------------------------------- v2rayN/v2rayN/v2rayN.csproj | 5 +- 3 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 v2rayN/v2rayN/Sample/tun_singbox diff --git a/v2rayN/v2rayN/Global.cs b/v2rayN/v2rayN/Global.cs index c23542c8..19ad0168 100644 --- a/v2rayN/v2rayN/Global.cs +++ b/v2rayN/v2rayN/Global.cs @@ -37,7 +37,6 @@ public const string v2raySampleInbound = "v2rayN.Sample.SampleInbound"; public const string CustomRoutingFileName = "v2rayN.Sample.custom_routing_"; - public const string TunSingboxFileName = "v2rayN.Sample.tun_singbox"; public const string TunSingboxDNSFileName = "v2rayN.Sample.tun_singbox_dns"; public const string TunSingboxInboundFileName = "v2rayN.Sample.tun_singbox_inbound"; public const string TunSingboxRulesFileName = "v2rayN.Sample.tun_singbox_rules"; diff --git a/v2rayN/v2rayN/Sample/tun_singbox b/v2rayN/v2rayN/Sample/tun_singbox deleted file mode 100644 index 1710b0e3..00000000 --- a/v2rayN/v2rayN/Sample/tun_singbox +++ /dev/null @@ -1,96 +0,0 @@ -{ - "log": { - "disabled": $log_disabled$, - "level": "debug", - $log_output$ - "timestamp": true - }, - "dns": $dns_object$ , - "inbounds": [ - { - "type": "tun", - "tag": "tun-in", - "interface_name": "singbox_tun", - "inet4_address": "172.19.0.1/30", - - "mtu": $mtu$, - "auto_route": true, - "strict_route": $strict_route$, - "stack": "$stack$", - "sniff": true - } - ], - "outbounds": [ - { - "type": "socks", - "tag": "proxy", - "udp_fragment": true, - "server": "127.0.0.1", - "server_port": $socksPort$ - }, - { - "type": "block", - "tag": "block" - }, - { - "type": "direct", - "tag": "direct" - }, - { - "type": "dns", - "tag": "dns_out" - } - ], - "route": { - "auto_detect_interface": true, - "rules": [ - { - "inbound": "dns_in", - "outbound": "dns_out" - }, - { - "protocol": "dns", - "outbound": "dns_out" - }, - { - "network": "udp", - "port": [ - 135, - 137, - 138, - 139, - 5353 - ], - "outbound": "block" - }, - { - "ip_cidr": [ - "224.0.0.0/3", - "ff00::/8" - ], - "outbound": "block" - }, - { - "source_ip_cidr": [ - "224.0.0.0/3", - "ff00::/8" - ], - "outbound": "block" - }, - { - "port": 53, - "process_name": [ $dnsProcessName$], - "outbound": "dns_out" - }, - { - "process_name": [ $directProcessName$], - "outbound": "direct" - } - $ruleDirectIPs$ - $ruleDirectProcess$ - $ruleProxyIPs$ - $ruleProxyProcess$ - $ruleFinally$ - ] - } -} \ No newline at end of file diff --git a/v2rayN/v2rayN/v2rayN.csproj b/v2rayN/v2rayN/v2rayN.csproj index 4f036462..be2c2a2c 100644 --- a/v2rayN/v2rayN/v2rayN.csproj +++ b/v2rayN/v2rayN/v2rayN.csproj @@ -33,10 +33,7 @@ Never - - - Never - + Never