fix: fancyss_hnd_v8_full 3.5.30 在 BE88U(3006.102.4) 上因 netstat -nlp 无进程名误判 xray 启动失败 - #33909
Open
yiqian987 wants to merge 1 commit into
Open
fix: fancyss_hnd_v8_full 3.5.30 在 BE88U(3006.102.4) 上因 netstat -nlp 无进程名误判 xray 启动失败#33909yiqian987 wants to merge 1 commit into
yiqian987 wants to merge 1 commit into
Conversation
Fallback to pidof and netstat -an port probe when netstat -nlp does not expose process names on some firmwares (e.g. ASUS BE88U/3006.102.4), preventing false negatives in detect_running_status3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景说明
在部分固件环境中(已在 ASUS RT-BE88U,固件 3006.102.4 复现),
netstat -nlp可能无法稳定返回进程名。当前 fancyss 中,
detect_running_status3依赖netstat -nlp同时匹配端口和进程名,因此会出现误判:影响版本
[fancyss_hnd_v8_full] 3.5.30变更内容
对
detect_running_status3增加回退检测逻辑(保留原有逻辑优先级):netstat -nlp检测;pidof <BINNAME>检测进程是否存在;netstat -an检测目标端口是否存在。这样可兼容
netstat -nlp不暴露进程名的环境,避免误判启动失败。验证结果
修复前:
Configuration OK.修复后:
pidof xray可返回有效 PID