v2ray-noad

command module
v0.0.0-...-8d4bfef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 6 Imported by: 0

README

下载文件 .dat 域名文件放到 V2Ray 的资源目录中,域名文件的标签及标签对应的域名见同名文件夹下的文件,在 V2Ray 配置中按标签设定路由规则,所有的域名均以子域名的形式进行匹配。

rules : {
"type": "field",
"domain": ["ext:geosite.dat:reject"], //广告域名屏蔽
"outboundTag": "blocked"
},{
"type": "field",
"domain": ["ext:geosite.dat:proxy"],
"outboundTag": "proxy"
},{
"type": "field",
"domain": ["ext:geosite.dat:proxyjp"],
"outboundTag": "proxyjp"
},{
"type": "field",
"domain": ["ext:geosite.dat:direct"],
"outboundTag": "direct"
},{
"type": "field",
"domain": ["ext:geosite.dat:cn"],
"outboundTag": "direct"
},

因为我本人主要用它过滤广告,所以一般我只用上面的过滤广告的规则,具体的请直接下载dat文件放入v2ray目录即可。然后更改config配置,加入广告屏蔽规则。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL