Commit graph

1070 commits

Author SHA1 Message Date
Andrevich
008e2788e6 Prevent uTLS misuse and uci.set(null)
Add utls_unsupported() and stop emitting uTLS for transports/types that can’t use it (hysteria, hysteria2, tuic, naive, or quic) to avoid startup fatal/dial errors. Expose optional url fields for urltest outbounds. Harden subscription import/update: treat explicit nulls as deletions, skip uci.set() when a value is null to avoid libuci errors and stale values. Changes in generate_client.uc and update_subscriptions.uc.
2026-07-27 23:43:16 +04:00
Andrevich
f643444103
Update README with installation and project status details
Removed early development warning and clarified installation instructions for low memory devices.
2026-06-29 13:24:56 +04:00
Andrevich
d5ffaee1f2
Update README for installation instructions clarity
Clarified installation instructions for memory constraints.
2026-06-29 13:23:40 +04:00
Andrevich
1dc6c15031 Add automated install script and setup documentation
Adds install.sh, a one-liner automated installer that handles LuCI app, proxy core, and optional ByeDPI/Zapret components. Supports APK (25.12+), opkg (24.10), and 23.05 legacy with architecture auto-detection. Includes GitHub mirror support for regions with connectivity issues. Updates both English and Russian READMEs with quick install instructions and manual SSH setup guides.
2026-06-29 13:18:32 +04:00
Andrevich
9e883dad93 Add DNS status and host resolution i18n
Add translations for two new message strings in homeproxy/node.js:
- DNS not ready message (line 2725)
- Test host resolution message (line 2907)

Updated translations across Farsi, Russian, Chinese (Simplified), and template files.
2026-06-27 00:12:27 +04:00
Andrevich
aeb879dd8e zapret2 LuCI installer fix attempt 2026-06-26 14:29:33 +04:00
Andrevich
d12772b6b3 Add GitHub mirror fallback and fix signing-key fetch hang on blocked GitHub
Introduce gh_fetch() in both core_mgmt.uc and luci.homeproxy: tries
GitHub first, falls back to the mirror configured in
homeproxy.config.github_mirror only if GitHub fails — so a healthy
GitHub is never bypassed.

For APK signing key fetches (hiddify and zapret2), skip the download
entirely if the key is already present (pre-placed by a provisioning
tool or a prior install), use a short 20s timeout so a throttled
GitHub cannot hang the ubus call until timeout (exit 249), and fall
back to --allow-untrusted if the key fetch still fails rather than
blocking installation.
2026-06-26 11:28:55 +04:00
Andrevich
9af945e18c fix of missing functions after update (auto rpcd restart) 2026-06-25 16:02:04 +04:00
Andrevich
90518f58f5 Fix for current strategy test 2026-06-25 14:36:00 +04:00
Andrevich
9e05f422d3 Attempt to fix zapret test 2026-06-25 13:49:46 +04:00
Andrevich
88a500a8c9 Standardize Yandex links to ya.ru
Update Yandex URLs in root/usr/share/rpcd/ucode/luci.homeproxy: replace https://www.yandex.ru with https://ya.ru in the switch-case mapping and in the conn_sites array to keep Yandex links consistent.
2026-06-24 13:37:02 +04:00
Andrevich
aefb1043bd Add bypass_cn and bypass_ir routing modes
Introduce refactored and new routing modes (bypass_cn, bypass_ir) and adapt the UI/logic accordingly.
2026-06-23 23:54:22 +04:00
Andrevich
27f2437283 Use Replaces and drop Provides for ipk rename
Add 'replaces' metadata to the APK packaging step and remove the old 'Provides' entries from the ipk CONTROL file. Includes a comment explaining why: opkg treats Provided names as satisfying dependencies (which can prevent Conflicts from firing and allow old+new to coexist), so keeping Conflicts+Replaces (and omitting Provides) ensures opkg will cleanly replace the old packages. The APK path still uses the Alpine rename idiom (provides+replaces) via the mkpkg call.
2026-06-22 22:11:09 +04:00
Andrevich
e96912befc Docs: update UI labels, cores, ByeDPI presets
Rename references to Re:HomeProxy and the LuCI tab to "Core & Tools" / "Ядро и службы", update log/location links accordingly. Adjust recommended free space and core footprints (recommend ~40 MB free; sing-box-extended ~26 MB installed; compact hiddify-core ranges updated). Update ByeDPI docs to list 47 presets and switch recommended adaptive presets to I1/I2 (formerly numeric 31/32). Add Custom Routing and Server Settings wiki pages and a Resources & updates section for Core & Tools. Misc: polish cross‑links and wording in English and Russian docs to match these UI and behavior changes.
2026-06-22 20:36:54 +04:00
Andrevich
b72e65632c Add UDP TPROXY diagnostics and Zapret UI tweaks
Expose UDP TPROXY nft chain counters to diagnostics and show them in the UI; rpcd ucode now collects lines from homeproxy UDP-related nft chains and returns them as udp_tproxy, and diagnostics.js renders that output. Update Zapret help text to note QUIC support (shorten previous comparison to ByeDPI) and update the Russian translation accordingly. Fix zapret preset picker in node.js by keeping a reference to the select element so applyPreset updates the UI selection when a preset is applied.
2026-06-22 14:48:49 +04:00
Andrevich
8eb2511419
Update README.md 2026-06-22 13:27:48 +04:00
Andrevich
be6c73b312 Add Zapret 2 support and diagnostics
Introduce support for Zapret (nfqws2) across UI, RPC and core generation: add Zapret entries to client selector UI and AntiDPI status card, implement install/remove/status RPC hooks in the status view, and show kmod warnings. Diagnostics now resolve aggregate tags to configured nodes and can query a focused tag (used to show the active UDP node). generate_client.uc now treats Zapret like ByeDPI for secure-DNS detours and handles Zapret as a synthetic direct outbound with routing marks for main and UDP nodes. core_mgmt.uc avoids auto-selecting UPX-compressed builds on certain MIPS targets (UPX causes crashes) and produces clearer errors when space is constrained. Updated Russian translations for new strings.
2026-06-22 13:20:00 +04:00
Andrevich
e134f89e24 Update zapret link to zapret2
Replace references to bol-van/zapret with bol-van/zapret2 in the UI and translations. Updates htdocs/luci-static/resources/view/homeproxy/node.js and po/ru/homeproxy.po so the frontend text and Russian translation point to the new zapret2 repository.
2026-06-22 09:57:39 +04:00
Andrevich
c2202eb702 Add Zapret (nfqws2) support and diagnostics
Integrate Zapret (nfqws2) packet-level DPI-bypass: add UI options and warnings, diagnostics, backend detection, and documentation. Changes include frontend guards when NFQUEUE kernel module (kmod-nft-queue) is missing, diagnostics card entries and NFQUEUE counter listing, translated strings, and strategy attribution. The rpcd backend now detects zapret installation/running state, exposes zapret queue contents and a kmod_ok check, and includes Zapret info in the text report. README and wiki pages updated (docs, getting-started, DNS & Diagnostics) and Russian translations adjusted.
2026-06-21 23:32:11 +04:00
Andrevich
a4f1c41fab Add Zapret (nfqws2) anti-DPI support
Introduce Zapret (nfqws2) integration across UI, init, firewall and RPC. Adds UI controls to enable/install Zapret, a strategy preset picker, strategy tester, and a Discord-voice opt-in; plumbing in client.js and node.js to install/manage and test strategies. Add zapret_test.sh to run isolated strategy tests against several sites. Enable runtime nfqws2 instance via init script (procd) and ensure HomeProxy runs its own nfqws2 with admin-specified strategy. Update nft rules and firewall_post.ut to mark and queue zapret flows (including both TCP and UDP/QUIC handling) and to respect zapret marks; generate_client.uc emits zapret outbound, optional voice-port routing, adds sniff action for QUIC routing, and tweaks default uTLS fingerprint to 'edge'. Add RPC handlers (zapret_status, zapret_prepare_install, zapret_install_pkg, zapret_remove, zapret_strategy_test) to support detection, installation and testing from the web UI. Minor: register 'zapret-out' as a routing option and wire it into rule generation.
2026-06-21 21:51:16 +04:00
Andrevich
2c8fd184a8 Default uTLS fingerprint to 'chrome' for reality
Ensure uTLS blocks are emitted for reality and default the fingerprint to 'chrome' when a node doesn't provide one. Changes add logic in xhttp_download and generate_outbound so uTLS is enabled if the node supplies a fingerprint or if reality is active (sec === 'reality' / tls_reality === '1'), preventing sing-box reality clients from crash-looping by always supplying a uTLS fingerprint when required. Comments explaining the rationale were also added.
2026-06-21 10:54:25 +04:00
Andrevich
e5115dd60c Remove --no-cache from apk installs and adjust timeouts
core_mgmt.uc: drop --no-cache from apk add invocations (regular installs and --allow-untrusted) to avoid forcing an index refetch over the network. Add a comment explaining that --no-cache can be slow on poor uplinks and that kmod packages are resolved from the local index. Also remove --no-cache from the kmods install and increase the apk kmods timeout from 60s to 120s.
2026-06-21 10:40:05 +04:00
Andrevich
e3a4345479 proxy_banned_ru fix
treat routing_mode 'proxy_banned_ru' like custom for UDP/tproxy handling.
2026-06-20 22:26:00 +04:00
Andrevich
43d858cf17 Add Xray/V2Ray subscription parsing
Add parsing support for Xray/V2Ray JSON subscription formats by introducing parse_xray_outbound and parse_xray_config. The new parser converts an Xray outbound (vless, vmess, trojan, shadowsocks, socks, http, hysteria) and its streamSettings into HomeProxy node configs, mapping TLS/Reality settings, transports (ws, grpc, h2/http, httpupgrade, xhttp), and protocol-specific fields. Special handling for hysteria (v1/v2) is included and skipped when sing-box lacks QUIC. The main subscription logic is updated to detect and decode arrays of full Xray configs (common from some providers) and fall back to existing JSON or base64 decoding; existing Shadowsocks SIP008 detection is preserved.
2026-06-19 14:46:14 +04:00
Andrevich
980b838135 Standardize active-node latency coloring
Apply a consistent 4-colour scheme for active-node latency across views and remove duplicate code in the status view. Client and diagnostics now treat the 65535 sentinel as a confirmed timeout (red/"timeout"), >=3000 ms as slow (orange/diag-warn), <3000 ms as good (green/diag-ok) and no/zero delay as unmeasured (gray/diag-gray). The client view sets inline colors; diagnostics uses diag-* classes. Also remove the redundant getActiveNode implementation from status.js to avoid duplication.
2026-06-17 23:31:23 +04:00
Andrevich
7401208141 Improve URLTest help and node status coloring
Add a note to the URLTest help text suggesting removal of nodes that remain orange/grey for a long time. Revise status display logic to color nodes based on the core-reported delay: 65535 = red (timeout), >=3000 ms = orange, <3000 ms = green, and no/0 delay = gray (unconfirmed); show a 'timeout' label instead of raw 65535. Update Russian translations for the modified help text and add a translation for the new 'timeout' string.
2026-06-17 19:55:44 +04:00
Andrevich
f0b58fd26d Add link importer and shared URI parser
Add two new ucode scripts: import_link.uc (a headless importer for proxy share-links) and node_parse.uc (a shared parse_uri implementation). import_link.uc reads a link or a file of links, uses the shared parse_uri to convert each share-link into a homeproxy UCI node section, names sections with a stable FNV-1a hash, commits imported nodes (no grouphash) and emits JSON results. node_parse.uc implements comprehensive parsing for many URI schemes (vless, vmess, trojan, ss, hysteria, tuic, ssh, wireguard, naive, http(s), socks, etc.), performs validation, and surfaces sing-box feature checks for QUIC/UTLS support. This centralizes link parsing to avoid duplicate implementations and keeps the subscription importer and CLI/agent import in sync.
2026-06-17 00:56:50 +04:00
Andrevich
65fcc196cc Redact multi-line UCI and add connectivity checks
Update Russian translations for UI strings and improve diagnostics/reporting logic.

- po/ru/homeproxy.po: adjust Russian translations ("Direct IP", TLS phrasing, "passed").
- root/usr/share/rpcd/ucode/luci.homeproxy: harden UCI sanitization to handle multi-line option values (e.g. PEM keys) by redacting the option value and skipping subsequent continuation lines to avoid leaking secret bodies. Add a Connectivity section to generated diagnostics that probes several sites (Baidu, Google, YouTube, Yandex, Speedtest) using wget and records OK/FAIL for each site. Exit-IP rows are intentionally omitted.
2026-06-16 17:17:16 +04:00
Andrevich
9ead8879ee Update homeproxy.po 2026-06-16 16:46:52 +04:00
Andrevich
1c87de8fe0 Update Russian translations for routing terms
Refine Russian translations in po/ru/homeproxy.po: change "Routing Nodes" translation from "Узлы маршрутизации" to "Правила узлов", change "Routing Rules" from "Правила маршрутизации" to "Расширенные правила", and update the combined UI hint to use the new terms.
2026-06-16 16:30:19 +04:00
Andrevich
ca4209ae28 Add DNS choices, xhttp padding fix, cron & UI tweaks
Several small but important updates:

- UI (htdocs/luci-static/resources/view/homeproxy/client.js): add Cloudflare (1.1.1.1) and Google (8.8.8.8) DNS presets; restrict the "Same as main node" (main-out) option to non-custom routing modes and only when a main_node exists; always expose ByeDPI outbound when enabled; rename "Proxy filter mode" to "Proxy mode for devices" and add explanatory hints for gaming/global proxy IP options.
- Node UI (htdocs/luci-static/resources/view/homeproxy/node.js): fix closure variable (i -> k) to avoid iteration bug and shorten the probe hint text.
- Generator (root/etc/homeproxy/scripts/generate_client.uc): add xhttp_padding() to coerce disabled xhttp padding values ('0', '0-0' or empty) to the safe default '100-1000' and apply it when emitting sing-box/hiddify xhttp fields to prevent fatal core errors.
- Init script (root/etc/init.d/homeproxy): restore subscription auto-update cron entry on start when enabled (adds daily run at configured hour and restarts cron), reintroducing behavior lost during a prior init rewrite.
- Translations (po/ru/homeproxy.po): add and update Russian translations for the new/changed UI strings.

These changes prevent runtime failures for certain provider configs, restore missing auto-update behavior, improve UI clarity, and fix a node probing bug.
2026-06-16 16:25:18 +04:00
Andrevich
bfbf714da4 Add xhttp split-download and packet-up options
Introduce XHTTP packet-up controls and split-download support across UI, parsers and generators.

- htdocs/luci-static/resources/view/homeproxy/node.js: parse additional xhttp fields from links (scMaxEachPostBytes / sc_min_each_post_bytes and scMinPostsIntervalMs / sc_min_posts_interval_ms), add UI inputs for padding, packet-up limits and detailed split-download settings (host/path/server/port/SNI/ALPN/insecure).
- po/ru/homeproxy.po: add Russian translations for all new UI labels and help texts.
- root/etc/homeproxy/scripts/generate_client.uc: add xhttp_download() helper to build a per-core download transport, emit both camelCase (hiddify) and snake_case (sing-box) xhttp options, and attach the download section under the appropriate core-specific key.
- root/etc/homeproxy/scripts/update_subscriptions.uc: accept both dialects when parsing xhttp options (camelCase and snake_case) and handle both downloadSettings (hiddify) and download (sing-box), normalizing host/server/port and TLS/alpn/utls fields.

These changes ensure compatibility with both hiddify-core and sing-box dialects and expose finer-grained xhttp controls in the UI.
2026-06-16 12:09:10 +04:00
Andrevich
bb4f443627 generate_client: emit transport host with the correct JSON type per transport
sing-box's HTTP/2 (`http`) transport takes a host ARRAY, while xhttp and
httpupgrade take a single string. The UI's DynamicList (and some share-link
parsers) store http_host as a UCI list, which emitted a JSON array and crashed
hiddify-core on xhttp nodes ("json: cannot unmarshal array into Go value of type
string", #3).

Add a transport_host() helper that coerces the host to the correct shape per
transport at both generate sites. This fixes every input path (UI edit,
share-link, subscription), auto-repairs already-broken `list http_host` configs
on the next regeneration, and preserves HTTP/2 multi-host — without any UI or
migration changes.

Fixes #3

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 11:29:53 +04:00
Andrevich
6505ece16d Add connectivity tests, BYEDPI UI updates & fixes
Introduce a Connectivity diagnostics section (connection checks, exit IP / active node info) with new RPCs and live polling; move connection-check UI out of status into diagnostics and add translations. Add active URLTest node display and several routing/DNS UI tweaks for 'proxy_banned_ru' mode (russia-dns, secure-dns, main-out, byedpi-out). Rework ByeDPI presets: group presets by letter, add community presets, improve "Test all" flow with ordered execution, a Stop button, clearer progress/messages and updated translations. Fix template/comment text (replace crude QUIC comment), and harden client config generation by recognizing built-in DNS tags and skipping empty/dangling routing node outbounds to avoid crashes. Minor README_ru wording update and assorted i18n strings added.
2026-06-16 10:44:47 +04:00
Andrevich
96b4c7430a strToTime: preserve unit-bearing durations
Return null for empty inputs, coerce the input to a string, and only append 's' when the value doesn't already end with a letter (e.g. preserve "10s" or "1m30s"). This prevents emitting malformed values like "10ss" and documents the intent with a comment.
2026-06-15 15:17:16 +04:00
Andrevich
ab1bab1020 Add headless WireGuard/AmneziaWG import script
Add root/usr/share/homeproxy/scripts/import_conf.uc: a ucode script to import a WireGuard/AmneziaWG .conf into the homeproxy UCI 'node' section from the CLI/SSH. Parses Interface/Peer blocks (including AWG-specific fields), maps keys (private/public/preshared, endpoint host:port with IPv6-safe parsing, addresses, MTU, etc.) to a node object, and writes it idempotently to the 'homeproxy' config using a stable FNV-1a hash-derived section name. Emits a single JSON line with result or error and is intentionally dependency-free (avoids digest/md5 for OpenWrt compatibility). Usage: ucode import_conf.uc <path-to-.conf> [label].
2026-06-15 12:52:07 +04:00
Andrevich
de13202a7b Clarify UI text; handle nodes and kmod installs
Several related fixes and improvements:

- htdocs/luci-static/.../client.js: Reworded the Russia Inside/Re-filter description to clarify contents and routing behavior shown in the UI.

- root/etc/homeproxy/scripts/generate_client.uc: Tightened UDP-over-TCP generation so it is only emitted for hiddify when node.udp_over_tcp is enabled; treat an empty cfg.node as equivalent to 'main-out' when selecting effective_outbound and avoid creating redundant outbounds. These changes make outbound selection more robust and prevent unnecessary outbound creation.

- root/usr/share/homeproxy/scripts/core_mgmt.uc: Made download_pkg tolerant of an optional leading core argument (accepts both (url, tmp_path) and (core, url, tmp_path)); improved install_kmods by defaulting to a detected package manager and returning a proper success/failure result with an error message when kmod installation fails. This improves compatibility with different callers and surfaces installation errors.
2026-06-14 23:29:17 +04:00
Andrevich
e07082d002 Rebrand to Re:HomeProxy and installer improvements
Rename project and packages to Re:HomeProxy (luci-app-re-homeproxy), update package metadata and build scripts, and adjust UI labels and menus accordingly. Improve core install flow: add RAM detection, overlay-compression heuristics, automatic selection between full and compact (UPX) builds, stricter storage/RAM checks, and a variant argument for prepare_install; fetch sing-box-extended releases more robustly. Fix runtime behavior: init.d restores a default config when missing, add packaged homeproxy.default, prefer user-preferred core in ucode, and suppress top-level TLS for Shadowsocks in generated client configs. UI tweaks include better install/remove UX, gating "Same as main node" for custom routing, and updated diagnostics/status strings. Update translations (po files) and rpcd/menu/acl renames to match the rebrand.
2026-06-14 21:32:23 +04:00
Andrevich
ec59f7e653 Enhance ByeDPI strategy tester and routing fixes
Improve the ByeDPI strategy tester UI and backend and adjust routing logic for special nodes.

- UI (htdocs/luci-static/.../node.js): probe 4 sites (YouTube, Telegram, Discord, Speedtest) to reveal destination-sensitive strategies, display per-site pass/fail dots and aggregate full/partial results, update 'Test all' flow and messages, and require curl for full testing.
- RPC (root/usr/share/rpcd/ucode/luci.homeproxy): byedpi_strategy_test now starts one ciadpi instance and runs parallel curl probes, returns detailed per-host results and reasons (dns/tls/timeout/etc.), preserves/restores nft redirect rules and ByeDPI skgid, and handles cases without curl by returning a startup-only result.
- Generator (root/etc/homeproxy/scripts/generate_client.uc): route secure-dns via direct-out when main node is byedpi-out, and force ruleset downloads via direct-out when main path uses WireGuard/AmneziaWG or is byedpi-out; add clarifying comments about why these exceptions are required.
2026-06-14 14:51:04 +04:00
Andrevich
e6d56c49cb Honor preferred core, sing-box TLS fix, UI text
Improve core detection and generation logic, avoid sing-box strict errors, and update UI copy/translations.

- generate_client.uc: Add preferred_core handling and explicit detection for hiddify-core vs sing-box to mirror init.d precedence; fall back to UCI custom path when neither standard binary is present. This ensures the generated dialect matches the core the system actually runs.
- generate_client.uc: Suppress the stray 'tls' field on Shadowsocks outbounds when using sing-box (sing-box rejects unknown fields while hiddify-core is lenient). This prevents generation errors for ShadowTLS-wrapped Shadowsocks.
- client.js and po/*.po: Update the UI description to include approximate list sizes for "Russia Inside" and "Re-filter" and propagate those changes to Persian and Russian translations.
2026-06-14 11:51:00 +04:00
Andrevich
758e52ed95 Add ByeDPI: loop fix, per-list node, secure-DNS, diagnostics
- Fix conntrack loop: run ciadpi as root+gid 8181, exclude egress via meta skgid
- ByeDPI as main node and per-list RU-rules node (generate_client.uc + client.js)
- ByeDPI preset selector + strategy tester fixes (node.js)
- Diagnostics: ByeDPI status/ports in Core section and report; pidof detection
- Harden firewall gen against CRLF (tr -d '\r') + .gitattributes LF enforcement
- Fix strToInt crash in byedpi_strategy_test
2026-06-13 23:39:34 +04:00
Andrevich
dac137feca Move ByeDPI UI to node page and add installer
Move ByeDPI configuration and testing UI from the Client tab to the Node Settings page and add an integrated installer/prepare flow. client.js: add fs/ui requires, new RPC declarations and core_mgmt download helper, change ByeDPI flag to auto-install on first enable with a modal-driven install flow and requirement checks; remove the large in-page ByeDPI settings block (now on Node page). node.js: add a full ByeDPI tab (presets, command options, strategy tester, test-all runner, UDP-over-TCP and QUIC-block flags) with RPC-based testing and curl detection. status.js: disable package removal when ByeDPI is selected as the main node and pass a flag to the card builder. Update po and pot translation strings and adjust several UI texts and warnings. Also update init/scripts/ucode files related to ByeDPI packaging and management.
2026-06-13 19:10:24 +04:00
Andrevich
f55ccb0e31 Add ByeDPI UI, presets and strategy tester
Expose ByeDPI controls in the Client UI: add an enable flag, port / options fields, grouped preset selector, and a command-options field. Implement an interactive "Test current strategy" button and a "Test all strategies" runner (requires curl) that exercises ciadpi and shows which presets work. Add Status page UI to show/install/remove curl and wire new RPC methods (byedpi_strategy_test enhanced to actually start ciadpi and optionally perform an HTTP test via curl, plus curl_status/curl_install/curl_remove). Adjust package install helpers (apk handling and signing key copy) in core_mgmt and rpcd ucode. Update POT/PO translation templates for the new strings.
2026-06-13 16:38:37 +04:00
Andrevich
923ba106e6 Add ByeDPI (ciadpi) support and UI
Introduce local ByeDPI (ciadpi) integration: add a ByeDPI tab in Client settings (presets, cmd options, tester, UDP-over-TCP and QUIC-blocking), a ByeDPI card on the Status page with install/remove/update actions and live status, and route support (byedpi-out) in generated client configs. Add RPC handlers for byedpi status, prepare/install/remove, strategy test and custom core detection; update ucode to detect custom core paths and expose core info. Init script now launches ciadpi when enabled and can add an nft rule to block QUIC; generate_client handles byedpi outbound fallback. Also update menu ordering and add translation strings for new core descriptions.
2026-06-13 15:25:17 +04:00
Andrevich
60c583b4da Update protocol text, DNS IP and translations
Clarify supported protocols in the import modal, reword the latency-switch description, and fix the Comss.one DNS IP. Updated corresponding .po translation files and the POT template to reflect the new strings and translations.
2026-06-12 21:50:01 +04:00
Andrevich
40d0d00303 Add URLTest UI, unique node labels, translations
Introduce a URLTest info field and UI options in the client view (adds a DummyValue info block and main_urltest_nodes list, shown when main_node=urltest). Ensure imported WireGuard/AmneziaWG nodes get unique labels by appending -N if a label collision is detected. Update source list descriptions (Re-filter and Russia Inside) and add corresponding translation strings in POT and fa_IR/ru/zh_Hans PO files.
2026-06-12 21:29:08 +04:00
Andrevich
67743694cf Add diagnostics UI; ShadowTLS & install refactor
Add a new HomeProxy diagnostics page (htdocs/.../diagnostics.js) for core/config/DNS/nftables checks and report generation. Introduce ShadowTLS options (flag + password) in node settings and wire dependencies for Shadowsocks. Refactor core installation flow in status.js into prepare/download/install_pkg/install_kmods steps with new RPC calls, improving download/install error handling and progress messages. Update UI copy in client.js, and refresh localization strings and backend ucode/scripts to match the new features.
2026-06-12 20:05:00 +04:00
Andrevich
9538866efb Add i18n strings, postinst, ACL and core output fix
Add postinst hook in Makefile to reload rpcd after package install. Add new UI translation entries (status.js) to templates and fa_IR, ru, zh_Hans PO files for core/package management and status messages. Fix core_mgmt.uc output by printing the result directly (remove json() wrapper). Grant rpcd ACL exec permission for /usr/bin/ucode to allow invoking ucode from the service.
2026-06-12 11:30:32 +04:00
Andrevich
b916dc2d99 Move core management to core_mgmt script
Add a new /usr/share/homeproxy/scripts/core_mgmt.uc to handle core info, remote checks, install and remove operations (apk/opkg, GitHub API, package downloads). Update LuCI frontend to call the new script (fs.exec_direct) instead of in-process rpc methods, adjust core descriptions and translations, and conditionally hide China/GFW list version fields when routing_mode is proxy_banned_ru. In generate_client.uc prefer direct-out for ruleset downloads if the main node (or urltest nodes) use WireGuard/AmneziaWG. Also ensure RUN_DIR exists earlier in the init script and remove the old core_* rpc handlers from luci.homeproxy.
2026-06-12 10:38:52 +04:00
Andrevich
6e8b37cf8e Add core management UI and RPC methods
Introduce core management features for hiddify and sing-box: add client-side UI in htdocs/luci-static/resources/view/homeproxy/status.js (new RPC declarations, buildCoreCard, core info display, install/check/remove buttons, and load/render changes) and server-side RPC handlers in root/usr/share/rpcd/ucode/luci.homeproxy (core_info, core_check_remote, core_install, core_remove).

The server side detects package manager (apk/opkg), architecture, free /tmp and overlay space, inspects installed versions, queries GitHub releases for latest versions, and performs installs/removals via wget + apk/opkg with basic validation and error reporting. The UI shows package manager, arch, free space, install status/version, remote update check, and interactive install/update/remove flows.
2026-06-12 00:44:59 +04:00