Skip to content

v0.2.5

Choose a tag to compare

@github-actions github-actions released this 04 Oct 12:45
· 438 commits to a9d2b9d435da5379ffbf636925a2fe85966e5398 since this release

主要更新

  • 修复同一策略规则引用的目标列表之间存在重叠域名时 apply 失败的问题(PR #23)。

问题背景

一条规则同时挂载如「Anthropic 域名」和「Claude 域名」这类内容重叠的列表时,会生成两条 RouterOS 判重键(name + type + forward-to + match-subdomain/regexp)完全相同的 DNS Static 条目。RouterOS 允许它们以 disabled 状态共存,但启用第二条时报 failure: entry already exists,apply 在 activation 阶段中止,留下数千条 staged disabled 条目的半套用状态。

修复内容

  • 期望状态构建阶段对 DNS Static 条目按 RouterOS 判重键去重合并:投影优先级高者胜,disabled 投影让位给活跃消费者的 enabled 条目
  • 每次合并发出 routing_dns_projection_merged 告警,指明出口与两个目标列表
  • 不重叠域名不受影响
    🤖 Generated with Claude Code