1380 Commits
Author SHA1 Message Date
dependabot[bot] 40b1fad4c1 build(deps): bump jsonschema from 0.59.0 to 0.64.0 (#579)
Bumps [jsonschema](https://github.com/Stranger6667/jsonschema) from 0.59.0 to 0.64.0.
- [Release notes](https://github.com/Stranger6667/jsonschema/releases)
- [Changelog](https://github.com/Stranger6667/jsonschema/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Stranger6667/jsonschema/compare/ruby-v0.59.0...ruby-v0.64.0)

---
updated-dependencies:
- dependency-name: jsonschema
  dependency-version: 0.63.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-05 00:10:54 +11:00
dependabot[bot] 7c02e91d12 build(deps): bump the minor-and-patch group across 2 directories with 19 updates (#592)
Bumps the minor-and-patch group with 19 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [toml](https://github.com/toml-rs/toml) | `1.1.8+spec-1.1.0` | `1.2.3+spec-1.1.0` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.104` | `1.0.105` |
| [h2](https://github.com/hyperium/h2) | `0.4.20` | `0.4.21` |
| [hyper](https://github.com/hyperium/hyper) | `1.12.0` | `1.13.0` |
| [clap](https://github.com/clap-rs/clap) | `4.6.7` | `4.6.10` |
| [brotli](https://github.com/dropbox/rust-brotli) | `9.1.1` | `9.1.3` |
| [webpki-root-certs](https://github.com/rustls/webpki-roots) | `1.0.11` | `1.0.12` |
| [webpki-roots](https://github.com/rustls/webpki-roots) | `1.0.11` | `1.0.12` |
| [aes](https://github.com/RustCrypto/block-ciphers) | `0.9.3` | `0.9.4` |
| [sha2](https://github.com/RustCrypto/hashes) | `0.11.1` | `0.11.3` |
| [blake3](https://github.com/BLAKE3-team/BLAKE3) | `1.8.7` | `1.8.9` |
| [ipnet](https://github.com/krisprice/ipnet) | `2.12.2` | `2.12.3` |
| [uuid](https://github.com/uuid-rs/uuid) | `1.29.0` | `1.29.3` |
| [regex](https://github.com/rust-lang/regex) | `1.13.1` | `1.13.2` |
| [bytes](https://github.com/tokio-rs/bytes) | `1.12.1` | `1.12.2` |
| [rand](https://github.com/rust-random/rand) | `0.10.3` | `0.10.4` |
| [lru](https://github.com/jeromefroe/lru-rs) | `0.19.0` | `0.19.2` |
| [zip](https://github.com/zip-rs/zip2) | `9.2.1` | `9.9.0` |
| [flate2](https://github.com/rust-lang/flate2-rs) | `1.1.10` | `1.1.11` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.104` | `1.0.105` |
| [bytes](https://github.com/tokio-rs/bytes) | `1.12.1` | `1.12.2` |

Bumps the minor-and-patch group with 2 updates in the /crates/honk-ebpf directory: [anyhow](https://github.com/dtolnay/anyhow) and [bytes](https://github.com/tokio-rs/bytes).


Updates `toml` from 1.1.8+spec-1.1.0 to 1.2.3+spec-1.1.0
- [Commits](https://github.com/toml-rs/toml/compare/toml-v1.1.8...toml-v1.2.3)

Updates `anyhow` from 1.0.104 to 1.0.105
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.104...1.0.105)

Updates `h2` from 0.4.20 to 0.4.21
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.4.20...v0.4.21)

Updates `hyper` from 1.12.0 to 1.13.0
- [Release notes](https://github.com/hyperium/hyper/releases)
- [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/hyper/compare/v1.12.0...v1.13.0)

Updates `clap` from 4.6.7 to 4.6.10
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.6.7...clap_complete-v4.6.10)

Updates `brotli` from 9.1.1 to 9.1.3
- [Release notes](https://github.com/dropbox/rust-brotli/releases)
- [Commits](https://github.com/dropbox/rust-brotli/compare/9.1.1...9.1.3)

Updates `webpki-root-certs` from 1.0.11 to 1.0.12
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/compare/v/1.0.11...v/1.0.12)

Updates `webpki-roots` from 1.0.11 to 1.0.12
- [Release notes](https://github.com/rustls/webpki-roots/releases)
- [Commits](https://github.com/rustls/webpki-roots/compare/v/1.0.11...v/1.0.12)

Updates `aes` from 0.9.3 to 0.9.4
- [Commits](https://github.com/RustCrypto/block-ciphers/compare/aes-v0.9.3...aes-v0.9.4)

Updates `sha2` from 0.11.1 to 0.11.3
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.11.1...sha2-v0.11.3)

Updates `blake3` from 1.8.7 to 1.8.9
- [Release notes](https://github.com/BLAKE3-team/BLAKE3/releases)
- [Commits](https://github.com/BLAKE3-team/BLAKE3/compare/1.8.7...1.8.9)

Updates `ipnet` from 2.12.2 to 2.12.3
- [Release notes](https://github.com/krisprice/ipnet/releases)
- [Changelog](https://github.com/krisprice/ipnet/blob/master/RELEASES.md)
- [Commits](https://github.com/krisprice/ipnet/commits)

Updates `uuid` from 1.29.0 to 1.29.3
- [Release notes](https://github.com/uuid-rs/uuid/releases)
- [Commits](https://github.com/uuid-rs/uuid/compare/v1.29.0...v1.29.3)

Updates `regex` from 1.13.1 to 1.13.2
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.13.1...1.13.2)

Updates `bytes` from 1.12.1 to 1.12.2
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.12.1...v1.12.2)

Updates `rand` from 0.10.3 to 0.10.4
- [Release notes](https://github.com/rust-random/rand/releases)
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/rand/compare/0.10.3...0.10.4)

Updates `lru` from 0.19.0 to 0.19.2
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.19.0...0.19.2)

Updates `zip` from 9.2.1 to 9.9.0
- [Release notes](https://github.com/zip-rs/zip2/releases)
- [Changelog](https://github.com/zip-rs/zip2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zip-rs/zip2/compare/v9.2.1...v9.9.0)

Updates `flate2` from 1.1.10 to 1.1.11
- [Release notes](https://github.com/rust-lang/flate2-rs/releases)
- [Changelog](https://github.com/rust-lang/flate2-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.1.10...v1.1.11)

Updates `anyhow` from 1.0.104 to 1.0.105
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.104...1.0.105)

Updates `bytes` from 1.12.1 to 1.12.2
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.12.1...v1.12.2)

Updates `anyhow` from 1.0.104 to 1.0.105
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.104...1.0.105)

Updates `bytes` from 1.12.1 to 1.12.2
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.12.1...v1.12.2)

Updates `anyhow` from 1.0.104 to 1.0.105
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.104...1.0.105)

Updates `bytes` from 1.12.1 to 1.12.2
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.12.1...v1.12.2)

---
updated-dependencies:
- dependency-name: toml
  dependency-version: 1.2.3+spec-1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: anyhow
  dependency-version: 1.0.105
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: h2
  dependency-version: 0.4.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: hyper
  dependency-version: 1.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: clap
  dependency-version: 4.6.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: brotli
  dependency-version: 9.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: webpki-root-certs
  dependency-version: 1.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: webpki-roots
  dependency-version: 1.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: aes
  dependency-version: 0.9.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: sha2
  dependency-version: 0.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: blake3
  dependency-version: 1.8.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: ipnet
  dependency-version: 2.12.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: uuid
  dependency-version: 1.29.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: regex
  dependency-version: 1.13.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: bytes
  dependency-version: 1.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: rand
  dependency-version: 0.10.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: lru
  dependency-version: 0.19.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: zip
  dependency-version: 9.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: flate2
  dependency-version: 1.1.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: anyhow
  dependency-version: 1.0.105
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: bytes
  dependency-version: 1.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: anyhow
  dependency-version: 1.0.105
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: bytes
  dependency-version: 1.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: anyhow
  dependency-version: 1.0.105
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: bytes
  dependency-version: 1.12.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 22:30:35 +11:00
dependabot[bot] 0bc58b61f8 build(deps): bump rusqlite from 0.41.1 to 0.43.0 (#581)
Bumps [rusqlite](https://github.com/rusqlite/rusqlite) from 0.41.1 to 0.43.0.
- [Release notes](https://github.com/rusqlite/rusqlite/releases)
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md)
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.41.1...v0.43.0)

---
updated-dependencies:
- dependency-name: rusqlite
  dependency-version: 0.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 22:29:29 +11:00
dependabot[bot] ac2f300db0 build(deps): bump nix from 0.31.3 to 0.32.0 (#580)
Bumps [nix](https://github.com/nix-rust/nix) from 0.31.3 to 0.32.0.
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.31.3...v0.32.0)

---
updated-dependencies:
- dependency-name: nix
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 22:29:17 +11:00
Zakk 020545a98e fix(reality): report client version 1.8.2 (#591) 2026-12-04 18:12:53 +08:00
Lumen Yanganderies 649779d806 fix(pool,outbound): detect CLOSE-WAIT ready streams behind unread TLS bytes (#585)
* fix(pool,outbound): detect CLOSE-WAIT ready streams behind unread TLS bytes

* fix(pr-585): unify bare and ready TCP pool liveness into single poll

* refactor(pr-585): remove dead fd downcast arms and unused ProxyStream::raw_fd

* test(pr-585): harden fd extraction and ready-pool eviction coverage

* docs(pr-585): trim verbose comments and clarify changelog

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-12-04 10:20:18 +08:00
dependabot[bot] 8b0687bc02 build(deps): bump taiki-e/install-action from 2.90.6 to 2.90.11 (#574) 2026-12-01 05:15:02 +11:00
kaguyaanderies 01665ff7a8 perf(hysteria2): optimize UDP hot path, Salamander cipher, and GSO/recvmmsg socket (#571)
* perf(hysteria2): optimize UDP hot path, Salamander cipher, and GSO/recvmmsg socket

* fix(pr-571): bound defragmenter fragment ownership and simplify UDP inbound framing

* fix(pr-571): fix Hy2 Linux batch send readiness, error handling, and fallback latching

* fix(pr-571): preserve zero-heap address formatting and size check order in Hy2UdpTransport::send_to

* fix(pr-571): assert Salamander seal output length and expand cipher boundary tests

* docs(pr-571): clarify Linux Hy2 GSO bounds and sync design, rules, and changelog

* docs(pr-571): trim redundant comments and align zh-TW outbound wording

* test(pr-571): deduplicate Hy2 Linux batch tests and harden Cipher Debug check

* fix(pr-571): only latch Hy2 GSO fallback when UdpSocketState disables GSO

* perf(pr-571): fast-path single-packet Hy2 sendto and inline single-fragment defrag

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-11-30 16:05:25 +08:00
M0re Co1ors 2906442929 feat(ech): harden ECH validation, discovery, GREASE and subscription import (#568)
* feat(config): validate ECH config lists and share-link queries

* feat(outbound): harden ECH validation, discovery and Chrome GREASE

* feat(subscription,native-api): import Clash and sing-box ECH and tighten offline capture

* docs(ech): document ECH validation, subscription import and changelog
2026-11-29 16:27:39 +08:00
M0re Co1ors 912157fea4 fix(config,subscription,outbound): support QUIC disable-mtu-discovery for TUIC and Juicity (#567)
* feat(config): move QUIC MTU discovery toggle into QuicOptions

* fix(subscription): import QUIC disable-mtu-discovery for TUIC and Juicity

* feat(outbound): wire QUIC disable_mtu_discovery for TUIC and Juicity

* docs(config,subscription): document shared QUIC MTU discovery support

* refactor(config,subscription): simplify QUIC wire and Clash MTU wiring

* test(subscription,outbound): tighten records MTU assertions and trim Clash test

* docs(config,subscription): trim duplicate QUIC MTU docs and clarify wording
2026-11-28 19:18:44 +08:00
M0re Co1ors 4b5703e3f8 feat(outbound,config): add VMess UoT v2 and fix IPv6 WebSocket handling (#565)
* fix(outbound,config): bracket IPv6 WebSocket hosts and normalize request paths

* refactor(outbound): extract the shared UoT stream transport

* feat(config,core): import explicit VMess UDP-over-TCP settings

* feat(outbound): add VMess UoT v2 for direct and chained UDP

* docs(outbound): document VMess UoT v2 and IPv6 WebSocket handling

* fix(outbound): bound VMess AEAD nonces and guard UoT publication

* fix(core,outbound): tighten Clash UoT validation and rprx-off UDP selection

* refactor(outbound): split vmess/uot and share prepare_transport

* fix(config,outbound): register udp_over_tcp schema field and tighten UoT helper

* docs(outbound,config): sync VMess UoT docs and trim redundant notes and tests

* fix(outbound,config): fix VMess WS terminator nonce, !rprx XHTTP guard, and docs

- Defer VMess WS terminator nonce consumption until peer-first close so clean 65,536-chunk downloads finish without BrokenPipe.
- Allow agreeing duplicate udp spellings (e.g. udp=1&udp=true) in Shadowrocket VMess query parsing.
- Gate NodeRuntime::build_xhttp on builtin_protocol_available so !rprx builds skip VMess XHTTP pools.
- Add IPv6 IP-SAN certificate verification test for WS Host and endpoint literals.
- Sync en/zh/zh-TW docs and test-locations.md for VMess UoT packetEncoding and !rprx boundaries.
2026-11-28 10:30:26 +08:00
Zakk 0b632da7a1 chore(github): close issues opened without a form (#564) 2026-11-27 22:52:12 +11:00
M0re Co1ors 467cfa7716 perf(dns): harden bootstrap DNS and cache upstream addresses (#550)
* fix(outbound): harden bootstrap UDP retransmit and dual-stack deadlines

* perf(dns): cache upstream bootstrap resolution per generation with inline singleflight

* docs(dns): document upstream bootstrap cache and add changelog
2026-11-27 13:23:08 +08:00
Zakk e5090c22d0 feat(clash-api): report node alive state in /proxies (#545) 2026-11-27 11:46:11 +11:00
M0re Co1ors 2a23ce8736 perf(musl,tls,relay): native Alpine 3.24 musl builds, TLS cache fixes, and idle relay buffer shrink (#547)
* build(musl): replace Zig cross wrappers with native Alpine 3.24 builds

* fix(tls,core): cache DNS TLS connectors, bound caches, and add jemalloc-stats feature

* perf(relay): shrink idle expanded TCP copy buffers in place after 60s

* chore(changelog): add feat-memory-opt changelog fragment
2026-11-26 22:05:31 +08:00
Zakk 4d1dca7c80 fix(core): build libsystemd only on Linux (#532) 2026-11-26 07:40:06 +11:00
M0re Co1ors 4ce5272f25 fix(subscription): coalesce equivalent Hysteria2 port hopping aliases (#544)
* fix(subscription): coalesce equivalent Hysteria2 port hopping aliases

* docs(subscription): document Hysteria2 port hopping alias coalescing
2026-11-26 00:22:25 +08:00
Zakk f7415d0ac5 chore(release): add the idle-probe entry to v0.1.0-beta.7 (#543) v0.1.0-beta.7 2026-11-25 23:45:47 +11:00
Zakk bf9a199741 test(ci): fix flaky tests and retry CI downloads (#542)
* test(outbound): compare the fewest allocations over several samples

The stats_alloc counters are process-wide and libtest's main thread can
allocate inside a measured region, which only ever adds to a count. Take
the minimum of five samples per side instead of a single reading.

* test(outbound): start the health loop before advancing paused time

The loop schedules its jittered first tick (up to 5 s) when first polled,
which happened after the 6 s advance, so about one run in 80 had the
periodic cycle land inside the wait and probe the pinned member twice.

* test(dns): pin the receive task's last pool reference on one thread

On two workers the receive task could resume from its yield and drop its
pool reference before the query task counted it. The bind-and-drop dead
port could also be reused by another test's echo server, which answered.

* test(dns): check the reset log in a child process

tracing caches callsite interest process-wide; when another test thread
registered the reset callsite while this test installed its subscriber,
the event stayed disabled and the captured log was empty.

* ci(workflows): retry apt and curl downloads

The 2026-11-11 Ubuntu mirror outage failed 67 jobs on apt, which had no
retries. Every apt-get now sets Acquire::Retries=5, and curl retries
five times on any error.
2026-11-25 23:45:41 +11:00
Zakk 7e04f00df8 ci(vm): keep slow VM gates from failing after their tests pass (#541) 2026-11-25 18:59:54 +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 c7726a75d0 test(pool): expire the bare entry without racing a short TTL (#539) 2026-11-25 12:28:00 +11:00
Zakk 38fe5967f4 docs(api): match the doona pin to 0.1.0-rc.7 (#540) 2026-11-25 12:27:23 +11:00
Zakk 60c6b98eed ci(vm): keep the hang watchdog off the guest console (#538) 2026-11-25 11:55:41 +11:00
Zakk 957c81cee8 ci(vm): dump guest task state before the gate step times out (#537) 2026-11-25 10:23:22 +11: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
dependabot[bot] 0f54054cb6 build(deps): bump taiki-e/install-action from 2.90.3 to 2.90.6 (#530) 2026-11-24 07:17:51 +11:00
dependabot[bot] 93679ca3d8 build(deps): bump actions/setup-go from 7.0.0 to 7.1.0 (#531) 2026-11-24 07:17:37 +11: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
Zakk ef00efc3d4 docs: take over honk guidance from the doona manual (#521)
* docs(start): add service, log and OpenWrt guidance from the doona manual

* docs(reference): add startup and geodata diagnostics, link UI topics to doona
2026-11-19 00:06:52 +11:00
dependabot[bot] 8a7611eae4 build(deps): bump taiki-e/install-action from 2.90.2 to 2.90.3 (#517) 2026-11-17 21:48:42 +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 6db2c39af4 docs(zh-TW): fix mistranslations and unify Taiwan terms (#508) 2026-11-14 21:01:38 +11:00
Zakk 226830e4ec docs(zh-TW): add a Traditional Chinese (Taiwan) copy of the docs (#507) 2026-11-14 20:08:21 +11:00
Zakk 187b3ad1c2 docs: lead reference pages with an example and short field notes (#506) 2026-11-14 19:24:32 +11:00
Zakk 0e8d13e1ef docs: rewrite the English and Chinese docs in plain, consistent prose (#505) 2026-11-14 19:14:27 +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 5ca02313d7 docs(github): name the log sources in the closing comment (#501) 2026-11-13 20:19:36 +11:00