Commit graph

66 commits

Author SHA1 Message Date
Andrevich
0266c5e1c9 Add outbound interface binding, Direct/Proxy IP checks, YouTube test, Clash API for all routing modes, and zh-cn i18n package
New Features
Outbound Interface Binding

Added Binded interface field to every outbound node — allows pinning a proxy node to a specific network interface. using SO_BINDTODEVICE
The bind_interface value is preserved across subscription updates and not overwritten when nodes are refreshed
Status Page — IP Check

Added Direct IP button: shows the current exit IP and latency of the direct outbound
Added Proxy IP button: shows the exit IP, latency, and active node name of the currently selected proxy in the URLTest/Fallback group
Status Page — YouTube Check

Added YouTube connectivity check alongside the existing Google, Yandex, Baidu, Speedtest checks
Clash API

sing-box Clash API now enabled on 127.0.0.1:9090 for all routing modes
Build
Added luci-i18n-homeproxy-zh-cn package to the build pipeline — Chinese Simplified translation is now distributed as a standalone installable package, for both main and legacy (OpenWRT 23.05) releases
Translations
Added Russian and Chinese Simplified translations for all new UI strings
Fixed missing Russian translation for unchecked
2026-05-25 12:20:08 +04:00
Andrevich
1a3d659fe6 Execute subscription update script directly
Replace the RPC-based subscription update and polling flow with a direct fs.exec_direct call to /etc/homeproxy/scripts/update_subscriptions.uc from the UI. Remove client-side rpc usage and the async polling logic, and update error handling to reload on success and reset the map on failure (use this.map.reset()). Remove the corresponding server-side rpcd ucode methods (subscription_update and subscription_update_status) and the now-unused translation string.
2026-05-16 15:17:10 +04:00
Andrevich
0b981105ec Another attempt to fix subscription button 2026-05-16 14:47:00 +04:00
Andrevich
47d516fdc6 Subscription update fix attempt 2026-05-16 14:15:00 +04:00
Andrevich
ef1c4ab9f7 Use fixed /tmp path for subscription status
Replace `${RUN_DIR}/subscription_update.status` with `/tmp/hp_subscription_update.status` in root/usr/share/rpcd/ucode/luci.homeproxy
2026-05-16 13:51:15 +04:00
Andrevich
0c27743883 Add legacy IPK build and async subscription update
Introduce a legacy build mode for OpenWRT 23.05 and make subscription updates asynchronous with status polling. Changes: add LEGACY arg to .github/build-ipk.sh (produce -legacy IPKs and patch update_subscriptions.uc to avoid ucode-mod-digest by injecting an md5 shim), adjust control Depends and artifact names; update .github/workflows/build-ipk.yml to build/publish legacy IPKs and tweak asset matching; implement non-blocking subscription_update + new subscription_update_status RPC in root/usr/share/rpcd/ucode/luci.homeproxy; update frontend (htdocs/...) to poll update status with timeout and use translated timeout message (po/ru/...). This enables compatibility with systems missing ucode-mod-digest and avoids blocking UI during long subscription updates.
2026-05-16 12:44:06 +04:00
Andrevich
73bf7c1e3b Remove sing-box-s and consolidate server handling
Replace references to the deprecated 'sing-box-s' instance with 'hiddify-c', remove the separate generate_server.uc script, and consolidate server inbound generation into generate_client.uc. UI code (server.js, status.js) now checks/logs only for 'hiddify-c'. ACL (luci-app-homeproxy-hiddify.json) no longer exposes sing-box-s.log. RPC ucode (luci.homeproxy) restricts log_clean types to 'homeproxy' and 'hiddify-c'. Overall cleanup unifies server generation and removes obsolete sing-box-s artifacts.
2026-05-15 20:16:39 +04:00
Andrevich
5df70e84cb Parse hiddify-core output and handle unknown version
Client and server views now build a version string (v<version> or 'unknown') and use it in the status render template to avoid duplicating the 'v' prefix and to show a fallback when version is missing. The rpcd ucode for luci.homeproxy now reads the full hiddify-core output, extracts the version and Tags using regexes, closes the process earlier, and trims/splits tags into feature flags for more robust parsing.
2026-05-14 20:38:13 +04:00
Andrevich
020e65280a Update luci.homeproxy 2026-05-14 00:27:22 +04:00
Andrevich
900ac53717 Support custom_json, XHTTP, Naïve and parsing fixes
Adds a new 'custom_json' routing mode that can use a user-provided client config; UI changes in client.js to expose custom_json options and trigger subscription updates via RPC. node.js: require rpc, add NaïveProxy node type and XHTTP transport with UI fields (xhttp_mode, xhttp_headers), and adjust field dependencies. generate_client.uc: add TLS fragment support, normalize TLS ALPN to an array, handle xhttp mode/headers, rename log/output filenames, add default_mark and use it in routing, and write out hiddify-c.json. update_subscriptions.uc: import urldecode_params and extend URI parsing (naive, ssh, enhanced trojan parsing including xhttp and hiddify extras), add WireGuard parsing, and make base64 node decoding more robust. init.d: support custom_json by copying user-supplied config or generating config as appropriate and include custom_json in DNSMasq routing cases. Add an RPC method (subscription_update) in luci.homeproxy to run the subscription updater.
2026-05-14 00:22:45 +04:00
Andrevich
67fc51f3b6 Add Yandex and Speedtest connectivity checks
Extend the HomeProxy status page and RPC handler to include connectivity checks for Yandex and Speedtest. Adds two new DummyValue entries ('_check_yandex', '_check_speedtest') in the status view and adds corresponding cases in luci.homeproxy to map 'yandex' and 'speedtest' to their URLs. This enables the existing getConnStat routine to report on those additional services.
2026-05-13 18:53:20 +04:00
Andrevich
203cea0b17 Rename package to luci-app-homeproxy-hiddify
Update package name and references to the hiddify variant: change README download URL to luci-app-homeproxy-hiddify_latest_all.ipk; rename luci menu and rpcd ACL JSON files to luci-app-homeproxy-hiddify and update their acl/depends keys; update i18n POT/PO source references accordingly (po/templates/homeproxy.pot, po/zh_Hans/homeproxy.po). This aligns menu/ACL entries and translations with the released package name.
2026-05-13 18:12:23 +04:00
Andrevich
ec52b91207 Update LuCI menu title
Rename the LuCI menu entry for admin/services/homeproxy from "HomeProxy" to "HomeProxy-Hiddify"
2026-05-13 18:03:30 +04:00
Andrevich
4f3511fdaf Switch sing-box to hiddify-core
Migrate the project from sing-box to hiddify-core across packaging, init scripts, UI and runtime helpers. Removed sing-box package dependency from build/IPK/Makefile and updated GitHub Actions usages (checkout/upload-artifact pinned to v4). UI and status/log viewers now reference hiddify-c/hiddify-core and log filenames were renamed. init.d was rewritten to use /usr/bin/hiddify-core, load client config from /etc/homeproxy/hiddify-c.json, simplify routing/tproxy setup, adjust dnsmasq handling, and run hiddify-c via procd; log cleaner and ACL/ucode RPC checks were updated accordingly. Overall this change migrates runtime/service names, config paths and version parsing to hiddify-core.
2026-05-12 23:47:25 +04:00
Tianling Shen
d07c5688ba
chore: style update
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-09-19 18:40:23 +08:00
Anya Lin
cf84bea762 refactor(server/hp/ucode): Refactor handleGenKey, add support for keypair 2025-06-04 13:18:59 +08:00
Tianling Shen
d5de715b7a
chore(ucode): remove unused imports
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-01-08 19:26:49 +08:00
Tianling Shen
e7e22cef81
refactor(client): remove chinadns-ng
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2025-01-05 17:44:32 +08:00
Tianling Shen
64c1124d98
chore(rpcd): change file permission to 0644
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-11-30 00:24:25 +08:00
Tianling Shen
d1cb1796ca
feat(node): hide deprecated utls fingerprint for sb 1.10
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-11-20 19:38:12 +08:00
Tianling Shen
0d2f0d86ad
feat: prepare chinadns-ng v2 support 2024-04-02 14:42:34 +08:00
Anya Lin
a65a85cf05 fix(client): Merge ruleset.js into client.js 2024-01-16 19:24:44 +08:00
Anya Lin
bbe9f92b52 feat(ruleset): Add RuleSet section 2024-01-16 19:24:44 +08:00
Tianling Shen
d7609f6deb
chore(rpcd/hp): remove has_mptcp detect 2024-01-10 20:18:55 +08:00
Tianling Shen
de5058d09b
feat: add TCP Brutal support 2023-12-02 16:40:53 +08:00
Tianling Shen
849ef7f229
fix(client): require ip-full to bring up tun interface 2023-10-04 16:36:42 +08:00
Tianling Shen
ae34497e62
fix(rpcd): fix mptcp go version requirement
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-30 19:54:09 +08:00
Tianling Shen
2d801fc236
fix(rpcd): fix mptcp condition
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-09-13 11:50:36 +08:00
Tianling Shen
bd182b0598
feat: add mptcp support 2023-09-13 11:29:46 +08:00
douglarek
ab79c3b82a
fix(rpcd): update log type 2023-07-08 17:04:32 +08:00
Tianling Shen
733bec677f
fix(rpcd): fix connection check with gnu wget installed 2023-07-02 18:59:01 +08:00
Tianling Shen
e6d53cc591
feat(status): add connection check 2023-06-12 16:33:17 +08:00
Tianling Shen
1e3e7b1e47
feat(server): split configuration/process from client
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-02 16:23:01 +08:00
Tianling Shen
ce882dd831
feat: add chinadns-ng support 2023-04-14 06:49:55 +08:00
Tianling Shen
bec5cfe2e0
feat(client): check tproxy module 2023-03-28 01:37:29 +08:00
Tianling Shen
4f754d6665
feat: fix support for system tun stack 2023-03-19 19:15:59 +08:00
Tianling Shen
275d7f433c
workaround(rpcd): require manual restart after changed domain list
unfortunately this will cause unnecessary restart during uci changes
2023-02-14 14:19:51 +08:00
Tianling Shen
e0c9ec8d4d
feat: switch to ucode subscription script 2023-02-13 04:01:11 +08:00
Tianling Shen
5fc54d87f4
feat(subscribe): implement basic uci management 2023-02-12 10:10:26 +08:00
Tianling Shen
d4643f7104
fix(acllist): fix write white/black list 2023-02-12 06:05:32 +08:00
Tianling Shen
3f343518d9
feat(subscribe): touch ucode script 2023-02-11 07:04:16 +08:00
Tianling Shen
3315da8d42
fix(subscribe): fix parse IPv6 address 2023-02-11 02:47:27 +08:00
Tianling Shen
af747a93a6
chore: fix cron script 2023-02-10 10:30:09 +08:00
Tianling Shen
f20a1da255
feat(status): support clean log 2023-02-10 07:13:49 +08:00
Tianling Shen
5f8aa5caf9
fix(rpcd): fix security issue 2023-02-10 05:30:55 +08:00
Tianling Shen
b3232720e5
chore(subscribe): add note for add/remove nodes 2023-02-10 05:21:10 +08:00
Tianling Shen
34727407f6
feat(geodata): support lists update 2023-02-10 04:26:46 +08:00
Tianling Shen
bbc6213c06
refactor(generator): rewritten in ucode 2023-02-09 06:34:07 +08:00
Tianling Shen
75abb6ee24
feat(client): support ACL settings
luci only, fw rules need more work
2023-02-07 09:06:39 +08:00
Tianling Shen
fff51d3b10
feat(client): make use of taboption 2023-02-07 07:02:13 +08:00