7 Commits
Author SHA1 Message Date
Leadaxe 7527467965 feat(xhttp): accept sc_max_concurrent_posts (legacy, ignored)
scMaxConcurrentPosts is a removed Xray knob (grep + GitHub code search
total:0 in current XTLS/Xray-core and sing-box-extended). Current Xray
serializes to one upload POST body in flight at a time, which our sequential
packet-up Write already matches, so the field is accepted for config/link
symmetry but ignored by the client.

- option: V2RayXHTTPOptions.ScMaxConcurrentPosts (json sc_max_concurrent_posts)
- PARAM_MAP: document as legacy/ignore tier with the real concurrency mechanism
  (bounded pipe + WroteRequest serialization, server-side seq reorder)
- url-parsing doc: scMaxConcurrentPosts -> accept-but-ignore
- xhttp_obfs_full.json: include the field so check covers it

Verified: build/gofmt/vet clean, 16 unit tests pass, sing-box check passes
on all 3 xhttp configs incl the field.
2026-06-30 00:35:31 +03:00
Leadaxe 33ee291b17 feat(xhttp): full client-side support of extended XHTTP params (SPEC 002 v2)
Implement all 12 client-relevant Xray/sing-box-extended XHTTP params on the
existing lean-native client (no Xray vendoring):

- session/seq placement (path|query|header|cookie) + keys
- uplink-data placement (body|auto|header|cookie, chunked base64) + key + chunk size
- uplink_http_method (upper-cased; GET only in packet-up)
- X-Padding obfs mode: placement (cookie|header|query|queryInHeader) + key/header +
  method repeat-x | tokenish (HPACK-Huffman-tuned via golang.org/x/net/http2/hpack)
- packet-up tuning: sc_max_each_post_bytes (split), sc_min_posts_interval_ms (throttle)

4 server-only fields (server_max_header_bytes/no_sse_header/sc_max_buffered_posts/
sc_stream_up_server_secs) accepted but ignored by the client.

New files: transport/v2rayxhttp/{meta.go,xpadding.go}, xhttp_test.go.
Range fields use the "min-max" string form (no badoption.Range in sing).
Default (non-obfs) wire shape kept byte-identical to the live-verified v1
(x_padding='0' in Referer, session/seq on path, payload in body).

Verified: 16/16 unit tests, sing-box check on 3 configs incl full obfs,
go vet/gofmt/build (tagged+untagged) clean, negative (no with_xhttp) rejects.
Adversarial wire-protocol review against PARAM_MAP found no bugs.
Live test of a non-default mode against an Xray server remains an open TODO.
2026-06-29 15:23:57 +03:00
Leadaxe 4df8cf1977 lx(xhttp): tests + auto-reality check config + SPEC 011
- url_test.go: stream-one→bare /xhttp; stream-up/packet-up keep sessionId/seq.
- reality_detect_test.go: reality/ktls(reality)→true; utls/std/nil→false.
- lx-test/config/xhttp_auto_reality.json: mode=auto reality config for check.
- SPECS/011-B-W: spec/plan/tasks/report (status W — awaiting live validation).
2026-06-21 15:17:34 +03:00
Leadaxe 83d6b371fe lx(awg): ranged-header check fixture + CI wiring
awg2_ranged.json (fake keys) exercises ranged H1-H4 through sing-box
check; wire it into the positive and negative CI checks alongside
awg2_basic.json.
2026-06-11 01:43:37 +03:00
Leadaxe 0e8894d2ef lx(awg): AmneziaWG 2.0 client endpoint 2026-06-09 15:12:26 +03:00
Leadaxe d1b434fcef lx(xhttp): lean-native XHTTP client transport 2026-06-09 15:12:26 +03:00
Leadaxe da56518e3f lx(001): fork bootstrap — Makefile.lx, -lx version via ldflags, CI skeleton, sample config
- Makefile.lx (new, zero upstream touch): LX_TAGS, ldflags -lx version, lx-build → sing-box
- .github/workflows/lx-ci.yml: build(lx tags)+version+vet+check
- lx-test/config/minimal.json (avoid upstream test/ go module)
- relocate spec refs test/config → lx-test/config
- 001 complete: builds, version 1.13.13-lx.1, check OK; mark folder -C-
2026-06-09 14:36:12 +03:00