Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求添加自动检测系统内已存在的frpc功能 #61

Closed
okobenoko opened this issue Jan 27, 2024 · 11 comments
Closed

请求添加自动检测系统内已存在的frpc功能 #61

okobenoko opened this issue Jan 27, 2024 · 11 comments
Labels
enhancement:功能 是新的功能请求

Comments

@okobenoko
Copy link

建议:扫描系统PATH下是否存在frpc可执行文件。

@Muska-Ami
Copy link
Owner

@okobenoko 由于官方frpc不存在相关PATH,尚不清楚如何扫描呢

@okobenoko
Copy link
Author

我是指在系统PATH下扫描
比如linux下就扫描/usr/bin /bin等目录

@Muska-Ami
Copy link
Owner

@okobenoko PATH我们一般默认为环境变量了qwq 这个功能暂时没有考虑到,后续可能会做一下吧

@Muska-Ami
Copy link
Owner

@okobenoko 会优先解决其他Issue

@Muska-Ami Muska-Ami added the enhancement:功能 是新的功能请求 label Jan 27, 2024
@Muska-Ami Muska-Ami moved this to Low Status in NyaLCF Next Jan 28, 2024
@ltzXiaoYanMo
Copy link
Collaborator

建议:扫描系统PATH下是否存在frpc可执行文件。

其实也没这个必要(

我为何不让用户自行上传呢?

@SRY-CTB
Copy link

SRY-CTB commented Jan 30, 2024

或者给出FRPC保存的位置,让用户通过其他方式下载并保存到该位置,因为确实下载不下来

@Shiroiame-Kusu
Copy link
Collaborator

@okobenoko 由于官方frpc不存在相关PATH,尚不清楚如何扫描呢

直接frpc -v获取有没有正确输出就行了吧,最多再正则表达式处理一下

@Muska-Ami
Copy link
Owner

@Shiroiame-Kusu 懒得exec(

@Muska-Ami
Copy link
Owner

Muska-Ami commented Feb 8, 2024

开发版本实现,检测 NYA_LCF_FRPC_PATH 定义,若定义则使用该环境变量指定的frpc启动,e.g.:

export NYA_LCF_FRPC_PATH = "/opt/frp/frpc"

@Muska-Ami Muska-Ami moved this from Low Status to Done in NyaLCF Next Feb 8, 2024
@Muska-Ami Muska-Ami added the done in dev channel:开发通道已完成 在开发版本已经做到惹 label Feb 8, 2024
Muska-Ami added a commit that referenced this issue Feb 8, 2024
@Muska-Ami
Copy link
Owner

已合并到主分支

@Muska-Ami Muska-Ami removed the done in dev channel:开发通道已完成 在开发版本已经做到惹 label Feb 9, 2024
@Muska-Ami
Copy link
Owner

Added on 0.1.7+rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement:功能 是新的功能请求
Projects
Status: Done
Development

No branches or pull requests

5 participants