zxl hhyccc 69840fb577 luci-app-ssr-plus: fix builtin DNS detection for v2ray nodes.
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.
2026-10-24 19:57:46 +08:00
2022-11-17 19:42:45 +08:00
2026-07-14 01:18:28 +08:00
2026-10-18 14:12:16 +08:00
2026-10-18 14:22:33 +08:00
2025-04-22 21:18:47 +08:00
2025-04-22 21:13:39 +08:00
2025-02-08 21:40:49 +08:00
2026-03-27 22:20:04 +08:00
2026-10-18 14:44:24 +08:00
2025-08-25 05:28:24 +08:00
2026-03-27 00:19:37 +08:00
2026-06-15 21:37:58 +08:00
2026-02-09 00:33:10 +08:00
2026-02-28 00:35:50 +08:00
2022-06-12 20:27:03 +08:00
2024-03-01 00:51:58 +08:00

Setup instruction

Install clang first.

Method 1 - Clone this repo directly

  1. Clone this repo:

    rm -rf package/helloworld
    git clone --depth=1 https://github.com/fw876/helloworld.git package/helloworld
    
  2. Pull upstream commits:

    git -C package/helloworld pull
    
  • Remove

    rm -rf package/helloworld
    

Method 2 - Add this repo as a git submodule

  1. Add new submodule:

    rm -rf package/helloworld
    git submodule add -f --name helloworld https://github.com/fw876/helloworld.git package/helloworld
    
  2. Pull upstream commits:

    git submodule update --remote package/helloworld
    
  • Remove

    git submodule deinit -f package/helloworld
    git rm -f package/helloworld
    git reset HEAD .gitmodules
    rm -rf .git/modules{/,/package/}helloworld
    

Method 3 - Add this repo as an OpenWrt feed

  1. Add new feed:

    sed -i "/helloworld/d" "feeds.conf.default"
    echo "src-git helloworld https://github.com/fw876/helloworld.git" >> "feeds.conf.default"
    
  2. Pull upstream commits:

    ./scripts/feeds update helloworld
    ./scripts/feeds install -a -f -p helloworld
    
  • Remove

    sed -i "/helloworld/d" "feeds.conf.default"
    ./scripts/feeds clean
    ./scripts/feeds update -a
    ./scripts/feeds install -a
    

Note

⚠ For OpenWrt 21.02 or lower version

You have to manually upgrade Golang toolchain to 1.21 or higher to compile Xray-core.

S
Description
No description provided
Readme GPL-3.0
16 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 64.3%
Shell 10.8%
Makefile 10%
Lua 4.8%
Roff 3.8%
Other 6.1%