Files
shater/SPECS/005-AWG2_RANGED_MAGIC_HEADERS/TASKS.md
T
Leadaxe 38bda198ff docs: move lx docs out of upstream docs/ into docs-lx/
docs/ is an upstream-owned tree (it arrives wholesale from SagerNet on
every rebase). Our three downstream docs lived inside it — lx-config.md,
lx-changelog.md, lx-release-runbook.md — mixing fork files into the
upstream surface against CONSTITUTION principle #1 (thin layer / minimal
diff). Move them to a dedicated root-level docs-lx/ so the boundary
between our docs and upstream's is explicit.

- git mv preserves history.
- Updated every reference (docs/lx-* -> docs-lx/lx-*): README.md/.ru.md,
  SPECS/{003,004,005,009,020,README}, transport/wireguard/endpoint.go
  comments, lx-ci.yml, and lx-release.yml (the release-notes extractor +
  fallback URL now read docs-lx/lx-changelog.md).
- Fixed the now-relative links inside the moved files that pointed at
  upstream docs/ siblings: lx-config.md -> ../docs/configuration/outbound/
  urltest.md; lx-changelog.md -> ../docs/changelog.md (x2).

Verified: all relative + external links resolve, both workflows are valid
YAML, the release-notes awk path is docs-lx/, go vet clean on the touched
package. No release feature — folds into the next tag naturally.
2026-06-30 18:55:26 +03:00

1.8 KiB
Raw Blame History

TASKS — 005-AWG2_RANGED_MAGIC_HEADERS

Опции

  • option/wireguard_awg.go: тип MagicHeader (string-based, comparable) — UnmarshalJSON (number + "N"/"N-M"), MarshalJSON (number ↔ string), валидация uint32 / start ≤ end
  • H1..H4 → MagicHeader; IsSet() работает как раньше
  • option/wireguard_awg_test.go: number / string-число / диапазон / ошибки (start > end, > uint32, мусор, отрицательное); marshal round-trip; 0 → unset

Девайс

  • transport/wireguard/device_awg.go: h1..h4 → spec-строка через writeStr-путь; валидация с именем ключа; unset → не эмитить
  • device_awg_test.go (with_awg): \nh1=43613244-384550127; одиночные значения как раньше; plain WG → ""

Проверки

  • lx-test/config/awg2_ranged.json (фейк-ключи) + sing-box check обеих AWG-фикстур
  • Сборка с тегами и без; go vet; go test затронутых пакетов
  • Существующие AWG-фикстуры (awg2_basic.json) не ломаются

Приёмка

  • Лайв/handshake-тест против awg2-сервера с ranged-конфигом (uapi принял строки без IpcError, handshake + трафик прошли); секреты — только в temp-файлах, затёрты

Документация и закрытие

  • docs-lx/lx-config.md: h1–h4 int | "min-max", no-overlap, пример с диапазоном, маппинг awg.conf
  • SPECS/README.md: строка 005 в roadmap
  • IMPLEMENTATION_REPORT.md, DoD-чеклист, статус → C (шапка SPEC.md + Roadmap)
  • Тег v1.13.13-lx.6 → lx-release.yml (desktop + AAR)