Skip to content

Configuration format ​

Divergences in how the notation is read, not in functions. Deliberate format decisions are in design.md.

Accepted silently ​

WhatStatusWhereVerdict
route.override_android_vpnsilent: a warningcrates/native-config/src/rules.rs (route)platform

Checked late ​

WhatStatusWhereVerdict
The default of a manual group that is not in membersdifferent: an error at build time (group `x`: default `y` is not a member) with the group's position (ours_native_config::place), not at load timemodules/routing/group/src/lib.rs (Group::new); crates/native-config/src/entity.rs (chosen_by_default) checks only that the name existsmissing: check in the loader with a position
An empty groupdifferent: group `x`: `members` is empty at build time, with the group's positionmodules/routing/group/src/lib.rs (tags)rarely needed: a load error
block: reply in routepresent: passes loading; for every connection — an error in the log and closing without RST. The reference does the same (route/route.go): reply makes sense only for ICMP through TUNmodules/system/dispatch/src/lib.rs (reject_stream)junk: ICMP through our tun is answered by the stack, the rules do not see it; could refuse at load time

Error messages ​

Some messages do not speak in YAML terms:

MessageWhere it arisesWhat is wrong
parse rule[0]: …, parse dns rule[0]: …modules/routing/router/src/lib.rs, dns.rscheck and run print the rule's position and rule: … (ours_native_config::place by Origin); the Admin API and reload give the index
`http_client` and `download_detour` name two ways to downloadmodules/routing/router/src/remote.rsOur field is called via

Command line ​

WhatStatusWhereVerdict
Several -c / -Cdifferent: one configuration — one configuration: give `-c` or `-C` once; a -C directory with one YAML; no mergingapp/ours/src/main.rs (parse_args, native_options)— (one file is the design)
mergeno—— (one file is the design)
--disable-colorno: unknown flag: --disable-colorapp/ours/src/cli.rs (Flags::parse)junk: colour follows the terminal
formatdifferent: the YAML is not rebuilt — only spaces and empty lines are fixed, comments and indentation stayapp/ours/src/format.rs— (libs/yaml has no writer and no tree with comments)

Schema ​

ours schema describes keys but not values: leaf fields have empty schemas (crates/native-config/src/schema.rs). Types, enumerations and references are checked only by the loader. Verdict: missing — types from the derive macro's field tables.

GPL-3.0-or-later