The v1.7.2 source tag returns 404. Use v2.1.0 and its verified archive hash, update the license identifier, and use the committed Cargo lockfile. Verified LEDE source download and Cargo checks with both crypto feature selections.
Refs: https://github.com/coolsnowwolf/lede/issues/14320
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
- priority: prefer ?shadow-tls=<base64(JSON)> over ?plugin=... when both present
- plugin branch: rewrite shadow-tls opts from non-standard
`password=xxx;version=N` to SIP003 `passwd=xxx;vN=1`
- shadow-tls branch: accept passwd/password/pwd/pass as password key,
strip optional v/V prefix from version, only accept positive integers
- drop version suffix when missing or invalid instead of guessing v3
- keep simple-obfs -> obfs-local mapping unchanged
Affected:
- luci-app-ssr-plus: parseSSPluginInfo() in ss:// importer
- subconverter: processData() "ss" branch (plugin / shadow-tls)
Fixes: subscription emitting `plugin=shadow-tls;host=h;password=p;version=3`
was passed verbatim to ss-rust, causing invalid `plugin_opts` and
silent startup failure of the shadow-tls plugin.
- Replace the unavailable mirror.ghproxy.com with gh-proxy.com
- Replace the unavailable ghproxy.cc with gh-proxy.org
- Add ghproxy.link as an alternative proxy mirror
- Convert internationalized domains to Punycode using idn2
- Skip non-ASCII domains when idn2 is unavailable to prevent dnsmasq startup failures
- Normalize domain list entries by removing CRLF, inline comments and whitespace
- Process all blacklist, whitelist and denylist entries before generating dnsmasq rules
- Apply normalized domains to GFW list and adblock filtering
- Log IDN2 conversion status and skipped domains
Several declarations had drifted out of sync with the Kconfig options
defined in Package/.../config:
- CONFIG_PACKAGE_..._INCLUDE_GeoData was missing from
PKG_CONFIG_DEPENDS, so toggling it did not trigger a rebuild
- INCLUDE_Http_Proxy, INCLUDE_Mihomo, INCLUDE_GeoData and
INCLUDE_Xray only used select, leaving the corresponding package
behind when the option is turned off. Mirror them in LUCI_DEPENDS
as +PACKAGE_...:pkg so the dependency is released cleanly.
Feature choices otherwise select runtime packages even when luci-app-ssr-plus is disabled. Condition external package selections on the parent package while leaving internal feature selects unchanged to avoid dependency cycles.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Select the coreutils parent package explicitly so the timeout dependency does not hide SSR Plus in menuconfig.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Allow the exact -l:libcronet.a flag when Naive outbound is enabled to fix builds with Go 1.27.4. Bump the package release.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Use the SHA256 of the v1.19.33 archive generated by the OpenWrt download helper with the standard build umask. The previous hash caused cached downloads to be deleted and recreated on every build, invalidating the prepare and compile stamps.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Refresh the TUIC and Kcptun dependency contexts against the new archive. Try the Linux 7.3 GHASH library backend after any legacy bind error and cover backend selection with ARM64 regression tests.
Validated zero-fuzz/zero-offset patch replay, protocol regressions, ARM64 QEMU GCM tests, and the ARM64 OpenWrt Naive/Cronet package build and UPX integrity.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Synchronize the validated packages feed update, retaining Naive/Cronet, the local protocol integrations and both EIP93 GHASH backends.
Validated the independent ARM64 package build and UPX integrity, plus a packaged AES-256-GCM transfer on AN7581 Linux 7.3 with hardware interrupts increasing only when acceleration is enabled.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Xray 260601+ expects finalmask.udp to be ordered from the innermost
layer to the outermost. The KCP branch built the list as:
udp[1] = header (mkcp-legacy, settings.header = ...)
udp[2] = seed (mkcp-legacy, settings.value = ...)
so the header was treated as the inner layer and the seed as the
outer one. Swap the two so the seed/security entry is appended
first and the header entry second:
udp[1] = seed (innermost)
udp[2] = header (outermost)
Entry contents are unchanged; only their order in finalmask.udp is
adjusted. The old-format branch for Xray < 260601 keeps its existing
order.
Compress a separate binary during Build/Install under the .built stamp and only copy it during Package/install. Forced IPK regeneration reuses the compressed binaries without invoking UPX; AArch64 integrity and QEMU version checks pass.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Hysteria2:
Add a "hysteria2_realm_upnp" flag in the LuCI node config, shown only
when hysteria2_realms is enabled. When set to 1, the generated config
asks Xray to map the realm port on the gateway via UPnP/NAT-PMP,
improving hole-punching success behind NAT.
KCP:
Xray 260601 and later renamed the finalmask KCP entries and moved the
header/seed into "mkcp-legacy" with settings.header / settings.value.
Teach gen_config.lua to emit the new format when
xray_version_val >= 260601, while keeping the old
header-srtp / mkcp-original / mkcp-aes128gcm form for older cores.
New-format mapping:
none -> (no header entry)
srtp -> header = "srtp"
utp -> header = "utp"
wechat-video -> header = "wechat"
dtls -> header = "dtls"
wireguard -> header = "wireguard"
dns -> header = "dns" (+ value = kcp_domain)
A trailing { type = "mkcp-legacy" } entry is always emitted, carrying
settings.value = seed when a seed is configured.
Problem:
With pdnsd_enable=7 on a v2ray node, ssr-monitor kept logging
"builtin dns error.restart!" and restarting the service every 30
seconds.
Cause:
is_builtin_dns_active() only accepted a process command line
matching "$TMP_PATH/.*ssr-retcp\.(json|yaml)". When the node runs
on Mihomo (server_subscribe.enable_mihomo=1), the actual command
line is:
/var/etc/ssrplus/bin/ssr-retcp -d .../v2ray-<sid> -f .../config.yaml
which never matches that pattern, so the check returned false and
triggered a restart loop.
Fix:
- enable_mihomo=1: match "ssr-retcp.*v2ray-"
- enable_mihomo=0: keep the original ssr-retcp.json/yaml match
This covers both Mihomo and Xray backends and stops the false
positive.
Port Xray's private Go overlay with DT/CPU/FIPS guards, per-key verification,
bounded AF_ALG sockets, authentication checks and software fallback. Keep
AN7583 and other platforms on their existing crypto path. MIHOMO_EIP93=off
provides an explicit opt-out.
Use .go.in templates so recursive package discovery does not compile the
standard-library overlay files as application packages. Bump release to 3
and document the pristine/patched interoperability results.
Built the ARM64 OpenWrt package with Go 1.27.1. On Nokia XG-040G-MD BSP 5.4,
the hardware GCM and Go cipher regressions pass. Pristine and accelerated
Mihomo exchanged client/server roles for Shadowsocks AES-256-GCM and
Shadowsocks 2022, with 16 bidirectional SHA256 checks, hardware IRQ evidence
and off-switch controls. Classic Shadowsocks improved from about 34/33 to
146-149/100-110 Mbps (router send/receive).
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Refresh the existing patch stack and repair the TLS protobuf descriptor. Add a private Go overlay using AF_ALG EIP93 CTR with software GHASH, gated by AN7581 DT identity, with per-key verification and software fallback.
Validate zero-fuzz patch replay, configuration and crypto tests, the ARM64 Cronet package build and alternating ordinary/optimized client-server transfers. Document 3-4x bulk throughput gains and exclude AN7583 pending separate measurements.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Add Mihomo-compatible Kcptun inbound and outbound in protocol patch 180,
with cipher selection, FEC, Snappy compression, smux v1/v2, per-outbound
connection pools, expiration and lifecycle cleanup. Expose Kcptun as a
separate transport from mKCP and preserve Xray socket/gateway handling.
Add native Kcptun settings to LuCI and retain Xray for these nodes. Only
route UDP through Kcptun when the inner VMess/VLESS/Trojan protocol carries
it over the stream. Bump xray-core to release 9 and LuCI to 197-3.
Validate 99 bidirectional Xray/Mihomo traffic groups on the final static
artifact, loss/reordering/FEC tests, IPv6, pool expiry, invalid settings,
lifecycle race tests, LuCI generation and existing protocol regressions.
Replay all patches with fuzz=0; build static musl and MIPSLE artifacts.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Port Mihomo v1.19.32 ShadowTLS v1/v2/v3 inbound and outbound as RAW/TCP
security in patch 170. Include verified TLS/uTLS clients, handshake timeouts,
v3 users, SNI-selected handshake endpoints and unauthenticated fallback.
Expose native Xray ShadowTLS settings in LuCI and retain Xray for these nodes.
Bump xray-core release to 8 and LuCI release to 197-2. Correct the AnyTLS and
ShadowsocksR patch sign-offs to coolsnowwolf.
Validated Xray/Mihomo bidirectional TCP and encapsulated UDP traffic with
VLESS, Shadowsocks and Trojan, negative authentication/trust cases, race
checks, zero-fuzz patch replay, static musl build, MIPSLE build, generated
LuCI configs and existing protocol regressions. V2 TLS 1.3 session-ticket
instability also reproduces with unmodified Mihomo; v3 is the default.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Default ShadowsocksR Libev client and ChinaDNS-NG to disabled. Keep SSR server disabled by default and reset the package release to 1.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Merge server authentication, obfuscation, TCP and native UDP routing into renamed 140-add-shadowsocksr-proxy.patch. Add the Xray SSR server to LuCI and validate Mihomo-to-Xray interoperability plus Xray-to-reference-server regressions.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>
Merge inbound support into renamed 110-add-anytls-proxy.patch and expose the TLS server in LuCI. Validate bidirectional TCP/UDP interoperability with Mihomo v1.19.32, session reuse, authentication failures and existing protocol regressions.
Signed-off-by: coolsnowwolf <coolsnowwolf@gmail.com>