Skip to content

Deliberate design differences ​

These differences are deliberate: ours does not try to match the reference here.

WhatIn the referenceOursWhy
Configuration formatsing-box JSON, Xray JSONOnly our own YAML; JSON is neither read nor convertedJSON would bring the quirks of sing-box's Go decoding (case-insensitive keys, duplicate keys, null) into loading and reload; YAML errors point at a line and column
EntitiesLists with tagMaps "name → description"; tag is an errorUniqueness of names is ensured by the structure
Entity typeThe type fieldThe key of the protocol/kind block (vless:, transport: {ws:}, rank: {delay:})One way to write it; protocol-dependent blocks (tls, transport, mux) are nested in its block
Addressesserver + server_port, listen + listen_portOne host:port string; the pair is an errorShorter, no desynchronization
Groupsselector, urltest outbounds; Xray balancersThe groups section with members and rank: manual|order|delay|stable, pick, spreadOne model instead of three; balancing among several best ones
RefusalThe block outbound, the reject actionOnly the to: block action; a block outbound is an error (crates/native-config/src/entity.rs, outbound)One rule — one action; final: block creates the hidden outbound itself
A ruleaction + fields in one object, type: logical, invertmatch + exactly one of do/to; the logic any/all/not (modules/routing/router/src/syntax.rs)It is visible whether a rule ends the route
route.finalAn outbound name; otherwise the first oneMandatory; accepts everything to doesNo implicit "first outbound"
Rule-setsroute.rule_setThe rule_sets section; route.rule_set is an error (crates/native-config/src/rules.rs, route)Rule-sets are needed by both route and dns
An outbound's DNSdomain_resolver on dial, route.default_domain_resolverLeading dns.rules rules with outbound: <name>/"*" (modules/dns/dns/src/syntax.rs, resolver_prefix)All DNS in one section
DNS serversdns.servers as a list, type: tlsdns.upstreams as a map, the kind dot, bootstrap instead of a server's domain_resolvertls is a settings block; bootstrap chains are impossible by construction
FakeipA fakeip server, a route action to itThe dns.fakeip pool and the do: fakeip label, the answer is transformed after to (modules/dns/dns/src/router.rs, label_fake_ip)Fakeip does not reach internal queries; NXDOMAIN/empty answers are honest
Independent DNS cacheindependent_cache is optional (deprecated in 1.14)Always separate per upstreamOne upstream — one answer
Repetition in YAML—Anchors, aliases, merge keys, tags are forbidden (libs/yaml); the replacement is outbounds.defaultsRepetition is visible in the dashboard and when editing
SubscriptionsNot in sing-box (outbound providers only in forks)The subscriptions section; servers are <subscription>/<name>, referenced only through groupsThe composition changes on update
ReloadRecreates everythingRebuilds only what changed; reload policies on the section, the inbound, the outbound, the rule (crates/api/src/dispatch.rs, Policies)Connections are not torn without need
Capturetun with auto_route/auto_redirecttun as in the reference and, in addition, tproxy + auto_nft with the capture set computed from the rules; to: bypassWith auto_nft, traffic bypassing the proxy stays in the kernel
BuildBuild tagsModules and features; a type outside the build — is not built in (feature …) (crates/kernel/src/modules.rs)Small binaries for routers
ManagementClash API, V2Ray APIOur own Admin API and dashboard (app/ui)Working with the YAML text, preview/apply/rollback
Cache fileA bbolt databaseA directory of journals (modules/system/cache/src/enabled.rs)Writing without blocking the data path

Support for other formats is not added "just in case".

GPL-3.0-or-later