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

[BUG]: CLI版本使用-a进行认证以后,只显示了Waiting Callback... #227

Open
5 tasks done
anewinstance opened this issue Feb 1, 2025 · 2 comments
Open
5 tasks done
Labels
bug:漏洞 有些东西坏掉了

Comments

@anewinstance
Copy link

问前检查

  • 我在提问之前,已经自己排查过问题
  • 我确保我已经搜索了相关资料,但仍无法解决
  • 我确保这个 BUG 未曾被报告过
  • 我确保这个 BUG 在最新版本可复现
  • 我确保我已经熟记提问的智慧

问题描述&复现过程

使用-a进行认证以后,只显示了Waiting Callback...
我认为可能与这个文件 'nyalcf_cli/lib/commands/authorize.dart' 有关系
里面有那个Waiting Callback...
并且里面的if (rs == null) exit(1);echo $? 得到1相吻合

此外,帮助文档对于CLI不够完善

ps:日志里面没有什么东西,大概是--help输出的(为什么--help的东西会跑到日志里面去,而waitCallback那个没进去?)

版本

CIL 0.0.3

运行日志

[2025-02-01 12:04:53.311132][INFO]: Usage: nyalcf_cli <flags> [arguments]
[2025-02-01 12:04:53.311417][INFO]: -h, --help         Print this usage information.
[2025-02-01 12:04:53.311531][INFO]: -a, --authorize    Authorize. usage: <username> <password>
[2025-02-01 12:04:53.311637][INFO]:     --logout       Logout to LoCyanFrp.
[2025-02-01 12:04:53.311736][INFO]: -s, --start        Start frpc. usage: ..<proxy_id>
[2025-02-01 12:04:53.311857][INFO]: -d, --download     Download frpc. usage: [<arch> [<platform>]]
[2025-02-01 12:04:53.311971][INFO]: -c, --config       Modify Nya LoCyanFrp! CLI configuration. usage: <configuration> <node> <value>
[2025-02-01 12:04:53.312076][INFO]: -v, --verbose      Show additional command output.
[2025-02-01 12:04:53.312181][INFO]:     --version      Print the tool version.
[2025-02-01 12:06:35.719552][ERROR]: No user info, please do authorize first.
[2025-02-01 12:11:59.801886][TRACE]: All arguments: [-v]
[2025-02-01 12:12:09.287008][INFO]: Nya LoCyanFrp! CLI version: 0.0.3
@anewinstance anewinstance added the bug:漏洞 有些东西坏掉了 label Feb 1, 2025
@Muska-Ami
Copy link
Owner

Waiting Callback 并没有写入日志是因为此文本是直接通过 stdout 输出的,没有通过日志包

至于你说的这个问题应该是 Logger.write 把授权链接的输出覆写了,下个版本会修复

Muska-Ami added a commit that referenced this issue Feb 2, 2025
- 修复了 CLI 无法授权的问题 #227
- 修复了 CLI 在部分系统上退出行为异常的问题
- 更新到 LoCyanFrp 0.51.3-8 #2025020201
@Muska-Ami
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:漏洞 有些东西坏掉了
Projects
None yet
Development

No branches or pull requests

2 participants