Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

分流策略 route 的 domain 多个 规则 写在 列表里时 未能按预期 #67

Closed
ctermiii opened this issue May 7, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ctermiii
Copy link

ctermiii commented May 7, 2022

Describe the bug【描述 bug】

 [[route]]
 toTag = "blocked"
 domain = ["geosite:category-ads-all","full:self.events.data.microsoft.com","domain:access-sngapm.qcloud.com"]

这样写,部分ads域名未能block

分开两行后,目测ads都bock了。

 [[route]]
 toTag = "blocked"
 domain = ["geosite:category-ads-all"]
 [[route]]
 toTag = "blocked"
 domain = ["full:self.events.data.microsoft.com","domain:access-sngapm.qcloud.com"]

另外:

 [[route]]
 toTag = "direct"
 domain = ["geosite:cn","geosite:private"]  

发现163.com没有direct,还在测试中。

To Reproduce【如何复现该bug】

Expected behavior【预期的行为】
按计划分流

Envs (please complete the following information):【系统环境】

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Other 【其他】

@ctermiii ctermiii added the bug Something isn't working label May 7, 2022
@ctermiii
Copy link
Author

ctermiii commented May 7, 2022

另: 多个server时 按条件route到不同server目前在测试中发现好像也还没能按预期。

@e1732a364fed e1732a364fed changed the title 分流策略未能按预期 分流策略 route 的 domain 多个 规则 写在 列表里时 未能按预期 May 7, 2022
@e1732a364fed
Copy link
Owner

e1732a364fed commented May 8, 2022

已经找到问题所在,是我写代码疏忽了,马上修复。最新代码已经修复了你的 主 问题。

@e1732a364fed
Copy link
Owner

多个server时 按条件route到不同server

给出你的配置。 route的匹配规则是从上到下,遇到一个匹配的之后马上跳出 不再执行后面匹配。 也许你可以调整一下多个 route的顺序。

@e1732a364fed
Copy link
Owner

因为主问题已经解决,先关了该issue。若你能提供你第二个问题的配置文件,可重新提一个issue。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants