From f138e9efcb50ffcc46f4b75263c0a1374a6ab9ed Mon Sep 17 00:00:00 2001 From: Xiaoguang Sun Date: Sun, 27 Sep 2026 04:28:30 +0000 Subject: [PATCH] docs: explain domain rule precedence --- config/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/README.md b/config/README.md index 1916ecb..d3861ae 100644 --- a/config/README.md +++ b/config/README.md @@ -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)