Skip to content

2026.10.28

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Oct 08:23
Start xray-core when the configuration repeats a balancer tag

Since v26.9.9, Router.Init of xray-core calls ReloadRules
(XTLS/Xray-core#6678). ReloadRules rejects a balancer tag or a ruleTag
that is already in use. Before, only the routing API used these
checks. Init kept the last balancer of a tag and accepted rules that
share a ruleTag.

Some server configurations repeat a balancer: one copy for each rule
that uses it. Floxcore 1.2.4 has xray-core v26.10.21, and it did not
start with such a configuration. The log showed "app/router: duplicate
balancer tag".

The patch duplicate-tags.patch makes Init skip the two checks again,
as Init of v26.7.28 did. The last balancer of a tag replaces the
earlier ones. ReloadRules of the routing API keeps the checks.

The tests start the router with two balancers of one tag and with two
rules of one ruleTag. They also make sure that ReloadRules still
rejects both.