Muska-Ami / NyaLCF

NyaLCF - Nya LoCyanFrp! Launcher | 乐青映射启动器
https://nyalcf.1l1.icu
MIT License
59 stars 6 forks source link

[BUG]: 无gui版本,Ubuntu中You have no frpc installed yet! #169

Closed fxlqwq closed 3 months ago

fxlqwq commented 4 months ago

问前检查

问题描述&复现过程

[nyalcf_cli-macos-arm64](https://github.com/Muska-Ami/NyaLCF/releases/download/v0.2.0/nyalcf_cli-macos-arm64)
5.59 MB
9 hours ago

这个版本中出现一下问题

root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ./nyalcf_cli-linux-x64 --start  42090
[2024-07-21 01:40:28.510659][ERROR]: You have no frpc installed yet!
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

且Ctrl+C无法退出程序 尝试解决:我将0.59.0版本的frpc文件放在/bin文件夹中使用chmod +x /bin/frpc仍然显示相同内容且无法退出

以上所有均在以登陆(./nyalcf_cli-linux-x64 -l)后使用 在github下载版本为v0.2.0,命令输出为0.1.0

root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ./nyalcf_cli-linux-x64 --version
[2024-07-21 01:47:14.876666][INFO]: Nya LoCyanFrp! CLI version: 0.1.0

版本

CLI version: 0.1.0

运行日志

root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ cp ./frpc /bin
root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ls
LICENSE  frpc  frpc.toml  frps  frps.toml  nyalcf_cli-linux-x64
root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ./nyalcf_cli-linux-x64 ^C
root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ./nyalcf_cli-linux-x64 -s 42090 -v
[2024-07-21 01:45:50.340772][ERROR]: You have no frpc installed yet!
[2024-07-21 01:45:50.340935][TRACE]: All arguments: [-s, 42090, -v]
fxlqwq commented 4 months ago

好好好还是直接使用frpc吧,cli版本可能没有开发完成

root ➜ /workspaces/NyaLCF/frp_0.59.0_linux_amd64 (main) $ ./frpc
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
2024-07-21 02:04:56.715 [I] [sub/root.go:142] start frpc service for config file [./frpc.ini]
2024-07-21 02:04:56.715 [I] [client/service.go:294] try to connect to server...
2024-07-21 02:05:01.395 [I] [client/service.go:286] [%user%] login to server success, get run id [%user%]
2024-07-21 02:05:01.395 [I] [proxy/proxy_manager.go:173] [%user%] proxy added: [%user%.sshaaaa]
2024-07-21 02:05:02.694 [I] [client/control.go:168] [%user%] [%user%.sshaaaa] start proxy success
2024-07-21 02:05:03.195 [I] [proxy/udp.go:93] [%user%] [%user%.sshaaaa] incoming a new work connection for udp proxy, 194.246.34.19:2333
Muska-Ami commented 4 months ago

草 忘了把 Frpc 下载的操作集成了 大意了 先加到Project,下个版本一起加

Muska-Ami commented 4 months ago

目前应该是可以用环境变量指定 Frpc 的

Muska-Ami commented 3 months ago

已在dev版本添加下载frpc功能

Muska-Ami commented 3 months ago

已推送到 main 分支