mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
Prefer the most specific matching domain rule (#447)
* fix(rule): prefer most specific domain * docs: explain domain rule precedence
This commit is contained in:
1 parent
38b34030bc
commit
b01dc8b830
2 files changed
+31
-16
No files matched your search
@@ -95,6 +95,9 @@ cidr=192.168.100.0/24
|
||||
include=office.list.example
|
||||
|
||||
```
|
||||
|
||||
When a destination matches domain rules in multiple rule groups, Glider uses the most specific matching domain (the longest matching domain suffix). For example, a rule for `service.example.com` takes precedence over a rule for `example.com` for requests to `service.example.com` and its subdomains, regardless of the order in which those rule files are loaded. Other subdomains of `example.com` continue to match the broader rule.
|
||||
|
||||
See:
|
||||
- [office.rule.example](rules.d/office.rule.example)
|
||||
- [examples](examples)
|
||||
Reference in new issue
Block a user