Commit Graph
54 Commits
Author SHA1 Message Date
eries 3684fc93a8 chore(changelog): add feat-memory-opt changelog fragment 2026-11-26 10:13:43 +08:00
Zakk f7415d0ac5 chore(release): add the idle-probe entry to v0.1.0-beta.7 (#543) 2026-11-25 23:45:47 +11:00
Zakkanderies cb8b44b248 feat(alive): pause idle probes for every group policy (#527)
* feat(alive): pause idle probes for every group policy

* docs(groups): describe idle probe pause for every group policy

* fix(alive): recover dead idle members and wake reload selections

* perf(pr-527): coalesce idle-group activity tracking into one lock

* fix(pr-527): isolate active selectors and direct idle group membership

* fix(pr-527): target idle recovery to unreachable groups and custom check urls

* fix(pr-527): defer probe wakeups and publish idle state atomically

* test(pr-527): add behavioral tests for idle probe policies and recovery

* docs(pr-527): sync docs, rules and trim comments for idle probe changes

* fix(pr-527): avoid reentrant group-manager lock on custom url wake

* fix(pr-527): align idle recovery with datapath reachability

* test(pr-527): fix vacuous or flaky tests and close ablation gaps

* docs(pr-527): align control-plane reload docs and test comments

* fix(pr-527): avoid duplicate custom-url probes on wake

* perf(pr-527): avoid hot-path lock and monotonic clock in idle activity

* perf(pr-527): isolate hot alive map locks onto separate cache lines

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-25 09:46:01 +08:00
Zakk 00be4f0130 chore(release): collect v0.1.0-beta.7 and embed doona 0.1.0-rc.7 (#536)
* chore(release): collect the changelog for v0.1.0-beta.7

* chore(release): embed doona 0.1.0-rc.7
2026-11-25 03:17:43 +11:00
Zakk cd5a0ce60f fix(parser): ignore routing lines that trim to nothing (#535) 2026-11-24 19:59:30 +11:00
Zakk 4d063ad4fa fix(deps): update url for RUSTSEC-2026-0592 (#534) 2026-11-24 19:59:11 +11:00
Zakk 8ec9a112f7 chore(toolchain): build with Rust 1.100 (#533) 2026-11-24 19:51:53 +11:00
Zakkanderies 63de98ba32 Carry UDP through chains whose exit carries it over a stream (#512)
* refactor(outbound): make the SOCKS5 handshake and Shadowsocks stream generic over their transport

* feat(outbound): add a tunneled dial entry and run TLS and REALITY over it

* feat(outbound): implement tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess

* feat(config): parse chain nodes as hops from entry to exit

* feat(config): reject chains with missing, ambiguous or unsupported hops

* feat(outbound): build chain runtimes from the hops of their own generation

* feat(outbound): dial chain nodes hop by hop

* feat(core): present chain nodes in the APIs and skip address probes for them

* docs(outbound): describe chain nodes

* feat(config): resolve group edges and compose exit routes in one place

* feat(config): parse and validate the group exit field

* refactor(outbound): take group depth and cycle cutting from the group graph

* feat(outbound): cache route runtimes per generation and dial routes over their hops

* feat(outbound): route group selections through their exits as typed targets

* refactor(core): collect group leaves with the shared group traversal

* fix(core): key pooled DNS transports by the dialed target

* docs(config): describe the group exit field and how its routes grow

* feat(config): accept more exit routes: past depth 8, via later final namesakes, around cycles

* feat(config): tell which chain exits can carry UDP over a stream

* feat(outbound): carry UDP over a tunneled stream for Trojan and VLESS

* feat(outbound): dial chain UDP hop by hop

* feat(outbound): answer UDP capability for nodes and routes from one query

* feat(core): share one chain association per client source when the exit registers it

* feat(core): dial route UDP and count it against the failing hop or the exit

* feat(outbound): give routes UDP candidates when their exit carries UDP

* fix(core): publish group UDP connectivity from the shared capability query

* test(outbound): run the Xray chain UDP case in the weekly exact lane

* docs(outbound): describe UDP through chain nodes and exit groups

* test(core): pin the DNS packet transport refusal of group exit routes

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-24 10:56:07 +08:00
Zakkanderies e6e4904619 Add the group exit field to route chains (#511)
* refactor(outbound): make the SOCKS5 handshake and Shadowsocks stream generic over their transport

* feat(outbound): add a tunneled dial entry and run TLS and REALITY over it

* feat(outbound): implement tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess

* feat(config): parse chain nodes as hops from entry to exit

* feat(config): reject chains with missing, ambiguous or unsupported hops

* feat(outbound): build chain runtimes from the hops of their own generation

* feat(outbound): dial chain nodes hop by hop

* feat(core): present chain nodes in the APIs and skip address probes for them

* docs(outbound): describe chain nodes

* feat(config): resolve group edges and compose exit routes in one place

* feat(config): parse and validate the group exit field

* refactor(outbound): take group depth and cycle cutting from the group graph

* feat(outbound): cache route runtimes per generation and dial routes over their hops

* feat(outbound): route group selections through their exits as typed targets

* refactor(core): collect group leaves with the shared group traversal

* fix(core): key pooled DNS transports by the dialed target

* docs(config): describe the group exit field and how its routes grow

* feat(config): accept more exit routes: past depth 8, via later final namesakes, around cycles

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-24 09:59:57 +08:00
Zakkanderies 3f0d26049b Add proxy chain nodes (#510)
* refactor(outbound): make the SOCKS5 handshake and Shadowsocks stream generic over their transport

* feat(outbound): add a tunneled dial entry and run TLS and REALITY over it

* feat(outbound): implement tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess

* feat(config): parse chain nodes as hops from entry to exit

* feat(config): reject chains with missing, ambiguous or unsupported hops

* feat(outbound): build chain runtimes from the hops of their own generation

* feat(outbound): dial chain nodes hop by hop

* feat(core): present chain nodes in the APIs and skip address probes for them

* docs(outbound): describe chain nodes

* fix(chain): pin Quinn for stream submission receipts

* fix(chain): bind admitted hops and memberships to physical node IDs

* fix(dns): skip endpointless nodes in the subscription host index

* fix(chain): retain dial admission and final-hop authority across retries

* fix(chain): preserve carrier failure provenance through nested streams

* fix(health): skip raw endpoint probes only for virtual chains

* fix(probes): pin physical peers to their admitted DNS authority

* fix(health): publish node registrations with their runtime generation

* fix(observe): require local stream submission for QUIC chain requests

* fix(relay): preserve physical WebSocket and VMess completion evidence

* test(chain): verify physical exits and ownership with independent peers

* fix(clash): retain manual delay for the same unregistered physical node

* test(observe): distinguish pending receipts after setup errors and cancellation

* fix(outbound): compile owned VLESS tasks without flow observation

* docs(chain): document physical hops and probe ownership

* docs(clash): distinguish display samples from health history

* refactor(runtime): compare retained node configuration without cloning

* fix(probes): skip peer DNS for unavailable destinations

* refactor(probes): cache physical peers before resolving aliases

* fix(quic): track the accepted payload of a single scatter write

* test(clash): return the resume sender with the rebuild task

* test(clash): return the delay fixture future directly

* fix(dns): select pinned destination policy before query admission

* test(chain): keep both streams alive until both peers verify delivery

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-24 09:16:38 +08:00
M0re Co1ors 7cd8b13cd2 fix(relay): bound copy drain from the first EOF (#526)
* fix(relay): bound copy drain from the first EOF

* fix(relay): measure copy drain idle time on a monotonic clock

* test(dns): assert the score outcome of a retried exchange
2026-11-22 18:00:36 +08:00
Zakk 8919784a6f fix(native-api): accept quoted provider names (#518) 2026-11-19 08:04:11 +11:00
Zakkanderies 68207613c2 Add tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess (#509)
* refactor(outbound): make the SOCKS5 handshake and Shadowsocks stream generic over their transport

* feat(outbound): add a tunneled dial entry and run TLS and REALITY over it

* feat(outbound): implement tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess

* fix(pr-509): refuse TLS ECH discovery over a tunneled hop

* docs(pr-509): correct the tunnel dial option and classifier docs

* fix(pr-509): count a tunneled request as sent once every relay below has written it

* refactor(pr-509): move the SOCKS5 CONNECT tests into their own module

* test(pr-509): assert the target a tunneled VMess hop sends

* test(pr-509): check tunnel refusals by type, not message

* refactor(pr-509): implement SsTransport only for boxed proxy streams

* docs(pr-509): correct VLESS tunnel and REALITY fixture docs

* test(pr-509): assert the target a tunneled Shadowsocks hop sends

* test(pr-509): cover the SOCKS5 credential flush over a buffering carrier

* test(pr-509): assert SOCKS5 publishes request-sent before confirmation

* docs(pr-509): correct Shadowsocks stream and test comments

* fix(pr-509): keep ECH for a tunneled TLS hop whose server name is an IP

* fix(pr-509): forward vectored writes through the WebSocket pipe

* fix(pr-509): write queued gRPC DATA under the request that queued it

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-19 01:11:37 +08:00
Zakk e3b4cab380 fix(nfqueue): let the queue bind load nfnetlink_queue (#520)
* fix(nfqueue): let the queue bind load nfnetlink_queue

* docs(start): note nfnetlink_queue autoloading
2026-11-19 00:45:39 +11:00
Zakk dc1574c480 test(config): follow the start guide's moved dae fences (#522) 2026-11-19 00:10:19 +11:00
M0re Co1ors a9925bd762 fix(outbound): send the WebSocket Host name as SNI (#514)
* fix(outbound): send the WebSocket Host name as SNI

* fix(outbound): drop IPv6 brackets from the WebSocket Host SNI

* test(outbound): assert the SNI a WebSocket TLS dial sends
2026-11-15 19:51:45 +08:00
Zakk 9eb3151828 fix(native-api): let routing traces cover the whole loaded policy (#504) 2026-11-15 19:16:33 +11:00
foxjieanderies 06eb039792 fix(observe): widen kernel route trace dictionary budget (#502)
* fix(observe): widen kernel route trace dictionary budget

A LAN-scale policy (96 compiled routes) exceeded the 64 KiB per-policy
rule-text dictionary budget, silently disabling kernel route trace
decoding with only a reload warning. Raise MAX_DICTIONARY_BYTES to
128 KiB and MAX_RETAINED_BYTES to 2 MiB. The dictionaries are userspace
frozen rule-text tables (the kernel keeps fixed-size witnesses only):
no eBPF ABI, kernel map or packet-path change. OWNER_BYTES derives
from MAX_RETAINED_BYTES and stays far inside the flow store budget.
Syncs the numbers stated in the en and zh reference/api.md.

* docs(pr-502): state the 128 KiB / 2 MiB trace dictionary limits

* test(pr-502): expect a full trace layout to fit the widened dictionary budget

* test(pr-502): cover the widened dictionary and retained trace budgets

* docs(pr-502): note the startup warning in the trace dictionary changelog

* docs(pr-502): keep the trace dictionary changelog bullet on one line

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-14 21:19:47 +08:00
Zakk 187b3ad1c2 docs: lead reference pages with an example and short field notes (#506) 2026-11-14 19:24:32 +11:00
Zakk d9d401e8dd test: keep port-rebind tests off the shared loopback port pool (#498)
* test(dns): rebind the listener test on its own loopback address

* test(udp): keep the source reply targets off the shared loopback port pool

* test(dns): keep the UDP pool rebind tests off the shared loopback port pool

* test(udp): prove endpoint socket release through a weak handle
2026-11-13 21:50:27 +11:00
Zakk 41a0061304 feat(dns): let a hosts rule alias a name to another domain (#485) 2026-11-13 16:10:22 +08:00
Zakk 3fb832b56c fix(ebpf): copy packet headers without memmove (#488) 2026-11-13 10:20:35 +11:00
ebee7a5b39 feat(config): schedule geodata updates with cron from assets (#484)
* feat(config): schedule geodata updates with cron from assets

* fix(pr-484): validate cron local-time mappings across DST changes

* test(pr-484): assert cron grammar through scheduled times

* docs(pr-484): clarify geodata timezone and seed rules

* docs(pr-484): correct cron defaults and contract provenance

* docs(pr-484): list geodata schedule restart requirements

* fix(pr-484): reject geodata schedules without a local occurrence

---------

Co-authored-by: M0re Co1ors <57180345+Glassyiris@users.noreply.github.com>
Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-13 01:20:07 +08:00
Zakk a09d3bfa27 test(core): stop seven tests depending on host speed and shared process state (#486) 2026-11-12 08:59:35 +11:00
Zakk 02b62334d9 chore(release): add the syslog entries to v0.1.0-beta.6 (#471) 2026-11-09 03:33:14 +11:00
Zakk 53adddda3c chore(release): collect the changelog for v0.1.0-beta.6 (#470) 2026-11-09 03:30:55 +11:00
GhostStaranderies 534114ebed feat(dns): add optional TCP syslog auditing (#462)
* feat(dns): add optional TCP syslog auditing

* fix(dns): keep syslog sender identity only in the header

* fix(pr-462): keep audit events whose answers cannot be rendered

* fix(pr-462): warn once per DNS syslog outage and on queue saturation

* perf(pr-462): build singleflight answers only for attached followers

* test(pr-462): move DNS syslog validation tests into their own module

* test(pr-462): prove transparent UDP DNS queries reach syslog

* test(pr-462): tighten DNS audit test fixtures and assertions

* docs(pr-462): list DNS syslog switches as strict booleans

* docs(pr-462): keep DNS audit contracts in the design docs

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-08 23:32:52 +08:00
Zakk 6f1d810405 fix(store): check the db import before creating the state db (#467) 2026-11-09 02:05:40 +11:00
Zakk 1121e09252 fix(native-api): probe group members concurrently (#459)
* fix(native-api): probe group members concurrently

Group probes ran one attempt at a time under a single 30-second job
deadline, so a few slow members left every later member at "deadline".
Attempts now run up to URLTEST_MAX_CONCURRENT at a time, matching the
URLTest group loop. Probe target resolution errors are logged instead of
surfacing only as address_unavailable.

* fix(native-api): fall back to bootstrap DNS for probe targets

Probe target names resolved only through the pinned DNS generation, so
routing that cannot answer honk's own queries, such as asis, left every
probe at address_unavailable. Other name lookups already fall back to
bootstrap DNS; probes now do the same when no address family gets an
answer. Negative answers and reject rules still stand.
2026-11-08 23:26:07 +11:00
M0re Co1ors 63c838ea9f feat(dns): resolve node hosts through subtag() DNS rules (#463)
* feat(dns): resolve node hosts through subtag() DNS rules

* docs(dns): document subtag() node host resolution

* test(pr-463): renumber DNS reference conformance fences after the node host example

* refactor(pr-463): store node host tags in the generation map directly

* fix(pr-463): report the exchange failure of a claimed node host lookup

* fix(pr-463): decline unclaimed node hosts before building a lookup

* fix(pr-463): treat a quoted subtag() argument as an exact tag like the group filter

* fix(pr-463): skip family preference probes in claimed node host lookups

* docs(pr-463): limit the node host claim to bootstrap-path downloads

* docs(pr-463): correct node host evaluation comments

* test(pr-463): cover the XHTTP download host in the node host index

* refactor(pr-463): spell the node host lookup as a BoxFuture

* test(pr-463): reject a proxied first declaration of a subtag() upstream

* test(pr-463): fail the bootstrap hook test when a literal reaches the hook

* fix(pr-463): name the host and partial family failure in claimed lookup logs

* test(pr-463): fail claimed node hosts while DNS is paused and release them on reload

* test(pr-463): cover exact and regex subtag tag matching

* refactor(pr-463): split subtag() arguments in their parser

* docs(pr-463): distinguish node endpoints from proxied download targets

* fix(pr-463): mark uncaptured node-host rule decisions as partial evidence

* perf(pr-463): precompute node-host policy outcomes per DNS generation

* perf(pr-463): reuse the upgraded store when recording a flow gap
2026-11-08 18:26:31 +08:00
Zakkanderies 62b1390401 fix(subscription): name the outbound a failed download went through (#451)
* fix(subscription): name the outbound a failed download went through

* fix(subscription): stage HTTP status rejections and direct connection errors

* fix(subscription): keep the cause and node in staged download errors

* fix(pr-451): retain fetch diagnostics during shutdown

* refactor(pr-451): project provider diagnostics in one pass

* test(pr-451): separate failure contracts from routing cases

* refactor(pr-451): remove the single-use download result alias

* perf(pr-451): clone completion diagnostics only for reporters

* docs(pr-451): clarify classified fetch diagnostic availability

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-08 00:58:52 +08:00
Xiangzhe 73b1077bf9 perf(ebpf): verify only the TC variants the interface plan binds 2026-11-07 01:11:27 +08:00
M0re Co1ors 9e31cc0bd2 fix(dns): bound cached answer bytes per shard (#454)
* fix(dns): bound cached answer bytes per shard

* refactor(pr-454): keep cache mutations inside the shard owner

* test(pr-454): cover DNS cache byte boundaries and release paths

* docs(pr-454): clarify the DNS cache admission floor

* perf(pr-454): inline shard mutation accounting
2026-11-05 03:37:53 +08:00
M0re Co1ors 7d15034279 feat(core): use jemalloc as the default allocator (#455) 2026-11-05 03:19:08 +08:00
Zakk 88d470c662 chore(release): prepare v0.1.0-beta.5 with doona 0.1.0-rc.5 (#448)
* chore(release): embed doona 0.1.0-rc.5

* chore(release): collect the changelog for v0.1.0-beta.5
2026-11-04 01:53:56 +11:00
Zakkanderies e5b9ce3c3d build(deps): move to aya 0.16 and aya-ebpf 0.3 (#436)
* build(deps): move to aya 0.16

* fix(ebpf): adapt the datapath to aya-ebpf 0.3

* fix(ebpf): adapt the loader to aya 0.16

* docs(pr-436): refresh Aya API ownership guidance

* fix(pr-436): make shared map payloads padding-free

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-03 17:09:44 +08:00
M0re Co1ors 77176ff8e8 fix(subscription): import VMess nodes that claim UDP from Clash (#443) 2026-11-03 00:36:36 +08:00
Zakk f107c02a43 fix(ci): clear RUSTSEC-2026-0385 and give the VM jobs 60 minutes (#441)
* build(deps): update ctutils to 0.4.7 for RUSTSEC-2026-0385

* ci(ebpf): give the real-kernel VM jobs 60 minutes
2026-11-02 22:38:06 +08:00
M0re Co1ors ee5d5e34a5 fix(ebpf): parse Ethernet frames that reach L3-bound interfaces (#427)
* fix(ebpf): parse Ethernet frames that reach L3-bound interfaces

* docs(pr-427): state that link_header keeps trailing Ethernet bytes

* perf(pr-427): veto bare IP by EtherType before probing the header offset
2026-11-02 01:27:41 +08:00
M0re Co1ors 4149fd6135 fix(subscription): import websocket upgrade headers (#421) 2026-11-01 18:50:02 +08:00
Zakk 54b2e1cfbe fix(health): keep tcp cooldowns from gating udp probes (#408) 2026-11-01 02:50:17 +08:00
M0re Co1ors d9dbf2c5b7 fix(subscription): import Clash fingerprint as certificate pin (#420) 2026-11-01 01:54:31 +08:00
Zakkanderies 805d85925d fix(reload): apply the startup nfqueue downgrade to reload candidates (#407)
* fix(reload): apply the startup nfqueue downgrade to reload candidates

* docs(pr-407): explain the startup NFQUEUE reload exception

* test(pr-407): cover omitted and late NFQUEUE downgrades

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-01 00:25:28 +08:00
Zakk 6bfd6664b1 feat(release): ship deb, rpm and Arch packages (#417)
* feat(release): ship deb, rpm and Arch packages

* feat(release): replace the daeuniverse repository honk package

* fix(release): keep the service on deconfigure and map every hyphen

* feat(release): stop dae when honk-core starts and align the unit with dae
2026-11-01 00:15:35 +11:00
M0re Co1ors 367a10da39 fix(subscription): retry failed provider fetches (#412) 2026-10-31 10:46:37 +08:00
Zakk 5a9485eb81 fix(subscription): drop shared nodes instead of the whole provider (#406) 2026-10-31 01:03:24 +00:00
M0re Co1ors cbc559f331 feat(control): make shutdown connection waiting opt-in (#410) 2026-10-31 02:33:12 +08:00
Zakk 6b03ab835c fix(anytls): dial past an idle session to reach the standby floor (#405) 2026-10-31 04:32:27 +11:00
Zakk d3fb81f4d7 chore(release): prepare the v0.1.0-beta.4 changelog and release rules (#373)
* docs(changelog): summarise v0.1.0-beta.1 to beta.3 from their release notes

* docs(release): ask for a fragment in PRs and record the doona attachment step

* chore(release): collect the changelog for v0.1.0-beta.4

* chore(release): embed doona 0.1.0-rc.4

Pin the published doona v0.1.0-rc.4 tag commit and the API digests of its program and lite archives, and name it in the beta.4 changelog entry and the API reference.
2026-10-31 02:06:35 +11:00
M0re Co1ors c8bfa7a33e fix(dns): follow up standalone DNS load fixes with admission stats and expiry (#390)
* test(core): isolate process-global bootstrap resolver tests

* bench(dns): compile DNS benchmarks in clippy gates

* docs(dns): name the raw proxy bootstrap admission exception

* fix(dns): keep negative cache-hit expiry fixed across preferred-family waits

* feat(stats): count DNS admission refusals and pressure retirements

* docs(pr-390): lint DNS benchmarks in the no-default-features clippy command

* docs(pr-390): name udp_io as the bench the features lane checks

* docs(pr-390): limit the raw proxy-node admission exception to resolver sockets

* docs(pr-390): consolidate the branch changelog fragment

* perf(pr-390): reuse the stored negative cache deadline

* fix(pr-390): share DNS UDP admission across runtime generations
2026-10-30 01:39:59 +08:00