33 Commits
Author SHA1 Message Date
eries 6b192defb1 build(deps): bump the quinn fork to the receive window autotune 2026-10-07 22:50:23 +11:00
Zakk baa0a527a5 perf(native-ui): embed UI text precompressed and negotiate its encoding 2026-10-07 22:36:04 +11:00
eries 8c166f0706 perf(core): purge freed mimalloc pages after 100 ms 2026-10-07 22:35:16 +11:00
eries a7f59c67a1 fix(native-api): apply reviewed contract and lifecycle corrections 2026-10-07 22:27:32 +11:00
eriesandZakk 5640886704 build(deps): add the native-api and native-ui features
Co-authored-by: Zakk <zakk@gentoozh.org>
2026-10-07 21:56:12 +11:00
M0re Co1ors 5efb8c5a48 feat(routing): apply configurable socket and direct routing marks (#295)
* feat(routing): apply configurable socket and direct routing marks

* feat(core): download subscriptions and UI over marked sockets
2026-09-26 09:32:24 +08:00
Zakk e6fe0d7036 test(config): compare the dae-config parser with dae's parser in CI, with authored dialect cases and fuzzing (#255)
* test(config): add the conformance projection and the authored dialect cases

* test(config): compare the manifest against dae's parser

* test(config): fuzz targets with shared checks and a replayed corpus

* chore(ci): add the parser lane and the weekly fuzz job
2026-09-17 13:41:28 +08:00
dependabot[bot] f2a8a75288 chore(deps): bump brotli from 8.0.4 to 9.0.0 (#241)
Bumps [brotli](https://github.com/dropbox/rust-brotli) from 8.0.4 to 9.0.0.
- [Release notes](https://github.com/dropbox/rust-brotli/releases)
- [Commits](https://github.com/dropbox/rust-brotli/compare/8.0.4...9.0.0)

---
updated-dependencies:
- dependency-name: brotli
  dependency-version: 9.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-13 20:52:42 +08:00
Zakkanderies 27426b2cbd config: one vocabulary, one validation gate, diagnostics as data (#232)
* feat(config): define failure-preserving, redacted diagnostic and error data with legacy projections

* refactor(config): make standalone node flat-serde conversion diagnostic-aware

* refactor(config): thread diagnostic sinks through the json, yaml and toml loaders and the format fallback

* refactor(config): return parser and share-link warnings through data entrypoints

* feat(core): render startup and sighup diagnostic attempts exactly once

* fix(config): resolve tls-name and optional-flow claims before lossy assignment

* fix(config): resolve certificate-verification booleans and inverse aliases

* fix(config): resolve credential aliases and numeric feed scalars

* fix(config): normalize stream-transport claims without confusing packet capability

* fix(config): resolve packet-network and anytls udp-capability conflicts

* fix(config): normalize and validate vmess cipher aliases

* fix(config): validate tuic relay and hy2 obfuscation claims before dropping them

* fix(config): check duration arithmetic and normalize subsecond feed durations

* fix(config): share checked hopping-set decoding and reject repeated ports

* fix(config): enforce policy a at every canonical adapter completion

* fix(core): preserve original indexed outcomes through structured subscription normalization

* fix(core): preserve physical-line outcomes for uri and record subscriptions

* fix(core): enforce partial-body acceptance and last-valid-body persistence

* fix(core): admit canonical assembled config and registry collections before shortcuts

* fix(core): reject reload changes to startup-owned health inputs and tls mode

* fix(outbound): guard one-shot runtime creation and migrate production callers to fallible factories

* fix(config): reject unsafe traffic terms and omit whole invalid dns rules

* fix(config): retain explicit empty subgroup contributions through serde and refresh

* fix(config): share normalized dns ip-or-cidr conversion across admission and consumers

* fix(core): decode configured udp dns check targets once with default port 53

* fix(outbound): decode health and urltest http targets with correct authority boundaries

* fix(config): diagnose ineffective structured group options and unsafe custom api binds

* bench(core): give the reload benchmark valid nodes with canonical ids

* perf(core): admit a configuration equal to the active one without re-deriving identities

* fix(config): preserve diagnostics and bound subscription admission

---------

Co-authored-by: eries <coloredflowers@outlook.com>
2026-09-12 16:50:53 +08:00
M0re Co1ors afa06c78d7 chore(deps): bump boring stack to 5.2.0 with rebased REALITY fork (#118) 2026-09-02 09:28:26 +08:00
M0re Co1ors 9ecfbbac88 perf(quic): adapt flow control to measured BDP (#115) 2026-09-02 00:30:07 +08:00
M0re Co1orsandCopilot Autofix powered by AI 899dbb4a3d perf(quic): add path telemetry and bounded recovery (#111)
* perf(quic): add path telemetry and bounded recovery

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-01 19:08:32 +08:00
M0re Co1orsandGlassy Iris d6e3b5c038 fix(quic): patch quinn-proto receive-assembler chunk bound for lossy paths (#110)
Co-authored-by: Glassy Iris <glassyiris@users.noreply.github.com>
2026-08-31 22:14:23 +08:00
M0re Co1ors d67a2748af fix(build): upgrade dependencies and bpf-linker (#79)
* fix(build): upgrade dependencies and bpf-linker

* style(ebpf): satisfy latest clippy

* test(runtime): avoid blocking worker barriers

* fix(ci): limit eBPF test build memory
2026-08-28 01:17:03 +08:00
eries 6357843be8 fmt(delete): delete noneed describe 2026-08-11 19:43:44 +08:00
eries b83ae6a337 refactor(cleanup): remove unused surfaces 2026-08-10 10:54:11 +08:00
eries f39bce1535 feat(nfqueue): add minimal raw-netlink queue and nft owner 2026-08-10 01:13:44 +08:00
eries a1fb83d6f0 refactor(runtime): remove dead APIs and narrow unsafe paths 2026-08-08 10:22:39 +08:00
eries e7bf8e9bd5 refacror(core): change libc syscall to safe aya::Pod and aya::sys 2026-08-07 18:51:01 +08:00
eries 36cc0c2a59 fix(outbound): rewrite the vmess wire format to match Xray AEAD 2026-08-05 09:36:58 +08:00
eries e906bdb108 feat(outbound): add REALITY client over patched boring-sys 2026-08-05 09:36:51 +08:00
agent 8a4ca47dfc feat(config): derive stable node IDs from node content 2026-08-04 03:52:40 +08:00
eries d6455379c1 refactor(outbound): remove ssr, trojan-go and h2mux protocols 2026-08-04 02:28:02 +08:00
eries b3c4e498e6 perf(core): integrate audited runtime optimizations 2026-08-02 07:11:46 +08:00
glassyiris 5abc4e9513 feat(core): singleton instance lock (restart race fix)
honk-core destroys dae0/daens/TC hooks on shutdown (fixed-name
datapath), and a busy engine can take over 90s to drain. A second
instance started during that window had its fresh datapath ripped out
from under it when the older instance's cleanup finally ran — the
restart race that hung the lab for a day (mysterious progressive
stalls minutes after each restart). Take an exclusive flock at
/run/honk-core.lock for the process lifetime: a second instance waits
up to 240s for the previous one to exit instead of overlapping, and
fails loudly past that.
2026-07-30 09:33:34 +08:00
glassyiris b506929619 feat(tool): honk-tool crate with 'sub' subscription availability probe
New CLI toolbox crate for diagnostics that don't belong in the engine
binary.  First subcommand:

  honk-tool sub <url|file> [--target HOST:PORT] [--url TEST_URL]
                 [--timeout SECS] [--concurrency N] [--limit N] [--ua UA]

fetches a subscription (or reads a local share-link file), prints
per-protocol counts, then probes every node concurrently: server IP
families, proxied connectivity to the test host over IPv4 and IPv6 (a
full protocol dial via ProxyRegistry), and a urltest latency measure,
ending with alive-per-family counts and median latency.

Verified against a live 200-node subscription and a local file input.
2026-07-26 13:51:36 +08:00
TnZzZHlp 2a33cc8501 feat(config): support include syntax 2026-07-25 11:08:25 +08:00
glassyiris 6edc585ef5 fix(deps): adapt to rand 0.10 / aes 0.9 / criterion update
- rand 0.10 restructured its traits: fill_bytes now lives on
  rand_core::Rng (re-exported as rand::Rng), random_range on the new
  RngExt, and RngCore became a marker trait no longer needed here.
  Update imports in salamander/shadowsocks/ssr/shadowsocks_2022/vmess/
  hysteria2 accordingly.
- aes 0.9 (cipher 0.5) renamed BlockEncrypt -> BlockCipherEncrypt
  (quic_boring header protection).
- criterion deprecated criterion::black_box; use std::hint::black_box.
- Silence clippy::await_holding_lock on the four DNS/ECH discovery
  tests that intentionally serialize on GLOBAL_TEST_LOCK.

cargo clippy --all --all-targets -- -D warnings clean; workspace tests
green (only the 3 pre-existing failures remain).
2026-07-23 22:07:44 +08:00
glassyiris 1d47f0a72d chore(log): demote per-connection logs to debug
On a router, ~100 lines/min of per-connection INFO logs mean constant
journald writes and flash wear for zero operational value. The two
per-connection info! lines (normal TCP path and eBPF offload) are now
debug!; lifecycle/admin events stay at info.

The clash /logs broadcast layer is installed unfiltered by design, so
debug events remain available on demand via /logs?level=debug while the
default info view and journald stay quiet. Verified live on the
gateway: 0 'TCP connection:' lines in journald and in the default
/logs view, full stream intact at /logs?level=debug.
2026-07-23 21:54:01 +08:00
eries 1fadaf1d93 .. 2026-07-23 01:54:17 +08:00
glassyiris 78493e0f41 feat(dns): encrypted transports, dae routing rules, and dial-path proxy
Add DoT/DoH/DoQ/DoH3 with session reuse and drop hickory-resolver.
Implement dae request/response DNS routing (qname/qtype/reject/asis,
response re-query, fixed_domain_ttl, optimistic_cache_ttl).

Upstream dial: explicit `name: 'uri' -> group|node`, or implicit traffic
Route(dns server) + GroupManager selection (dae chooseBestDnsDialer).
Wire SharedGroupManager and traffic Router into UpstreamPool; cache
H2/TLS sessions per leaf node.
2026-07-22 03:06:45 +08:00
glassyiris e67206879d ci: add tag-triggered release workflow; set version v0.0.1.alpha and mark README experimental 2026-07-21 01:15:14 +08:00
glassyiris 00df52851e Initial commit: honk — Rust eBPF transparent proxy engine 2026-07-21 00:53:43 +08:00