feat(luci): bulk-actions, live-connections, QR export, client-side filters [T1/T2]
build / aarch64_cortex-a53 (push) Successful in 3m3s
build / x86_64 (push) Successful in 3m2s

- nodeops.go: node enable|disable|delete|group (UCI mutation by name; group-assign
  dedups) + node qr (qrencode -t SVG, soft dependency with graceful error).
- conns.go: ConnsJSON from conntrack -L or /proc/net/nf_conntrack, bounded/sorted,
  best-effort outbound label (selected node vs direct). status URI field for QR.
- main.go: node enable/disable/delete/group/qr + `conns` dispatch.
- LuCI nodes.js: per-row selection checkboxes + select-all, bulk action bar
  (enable/disable/delete/assign-to-group/test), client-side filter bar
  (name/proto/alive/country via flag-emoji), per-row QR/Link modal.
- live.js (new): poll-based conntrack flow table; menu entry + acl.
- shater.uc: conns/node_qr(read) + node_enable/node_delete/node_assign_group(write)
  ubus methods + acl.
- tests: conns_test.go (parseConntrack both formats, isPrivateOrLocal).

Verified live on the 512M VM: enable/disable toggles UCI; group-assign dedups
("bulk1 bulk2"); delete removes; qr errors gracefully (qrencode absent); conns
reads /proc/net/nf_conntrack; nodes carries uri; all 5 ubus methods registered.
Playwright: Nodes page renders with 0 console errors, 12 menu items.

Also re-verified the full LAN-client E2E after all 7 features: netns client
192.168.1.60/.61 -> tproxy -> xray -> exit 104.156.233.234 (!= WAN 45.131.214.140),
c_rule_lan_proxy counter 26 pkts, both clients in the nft clients set, 184/254
nodes alive. The control-plane changes did not break the data-plane. r15.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
omarandClaude Opus 4.8 committed 2026-07-09 16:23:06 +03:00
1 parent c8fe02677f
commit 21ee972df1
13 files changed
+661 -10

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xrayctl
PKG_VERSION:=0.1.0
PKG_RELEASE:=14
PKG_RELEASE:=15
PKG_MAINTAINER:=shater
PKG_LICENSE:=MIT