feat: add readable routing rule comments
This commit is contained in:
1 parent
2206d03b39
commit
2fcb4ae171
4 files changed
+25
No files matched your search
@@ -18,6 +18,7 @@ go run . -config config.yaml
|
||||
`tokenEnv` задаёт имя переменной окружения и имеет приоритет над непустым `token`.
|
||||
|
||||
- `disabled: true` записывает в правило `enabled: false`; правило остаётся в конфигурации.
|
||||
- `comment` задаёт отображаемое в 3x-ui имя правила; по умолчанию используется `name`.
|
||||
- Один совпавший `outbound.tag` используется напрямую; несколько создают балансировщик.
|
||||
- `leastPing` и `leastLoad` требуют Xray `observatory`.
|
||||
- Порядок правил в YAML сохраняется; `sync.position` выбирает размещение блока: `first` или `last`.
|
||||
@@ -40,6 +41,7 @@ go run . -config config.yaml
|
||||
`tokenEnv` names an environment variable and overrides a non-empty `token`.
|
||||
|
||||
- `disabled: true` writes `enabled: false` to the rule while retaining it in configuration.
|
||||
- `comment` sets the rule name displayed in 3x-ui; it defaults to `name`.
|
||||
- One matching `outbound.tag` is used directly; several matches create a balancer.
|
||||
- `leastPing` and `leastLoad` require an Xray `observatory`.
|
||||
- YAML rule order is retained; `sync.position` places the managed block at `first` or `last`.
|
||||
|
||||
Reference in new issue
Block a user