XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2k stars 803 forks source link

v2board的路由模式不支持通配符 #540

Closed Scyllaly closed 8 months ago

Scyllaly commented 9 months ago

Dec 03 11:24:59 host XrayR[3036]: 2023/12/03 11:24:59 [Warning] core: Xray 1.8.4 started Dec 03 11:25:00 host XrayR[3036]: 2023/12/03 11:25:00 [https://host.com] V2ray(ID=1) Added 1 new users Dec 03 11:25:00 host XrayR[3036]: panic: regexp: Compile(*.youtube.com): error parsing regexp: missing argument to repetition operator: * Dec 03 11:25:00 WEPC47254319061 XrayR[3036]: goroutine 1 [running]:

Septrum101 commented 8 months ago

An array where each item is a domain match. There are several forms:

Plain string: If this string matches any part of the target domain, the rule takes effect. For example, "sina.com" can match "sina.com", "sina.com.cn", and "www.sina.com", but not "sina.cn".

Regular expression: Starts with "regexp:" followed by a regular expression. When this regular expression matches the target domain, the rule takes effect. For example, "regexp:\.goo.*\.com$" matches "www.google.com" or "fonts.googleapis.com", but not "google.com".

Subdomain (recommended): Starts with "domain:" followed by a domain. When this domain is the target domain or a subdomain of the target domain, the rule takes effect. For example, "domain:xray.com" matches "www.xray.com" and "xray.com", but not "wxray.com".

Exact match: Starts with "full:" followed by a domain. When this domain is an exact match for the target domain, the rule takes effect. For example, "full:xray.com" matches "xray.com" but not "www.xray.com".

Predefined domain list: Starts with "geosite:" followed by a name such as geosite:google or geosite:cn. The names and domain lists are listed in Predefined Domain List. Load domains from a file: Formatted as "ext:file:tag", where the file is stored in the resource directory and has the same format as geosite.dat. The tag must exist in the file.