mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3720] 0.52.2 登陆失败立刻退出 #2962
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2962
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wzm2256 on GitHub (Oct 23, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3720
Bug Description
这个问题多次被提到过 https://github.com/fatedier/frp/issues/3556
在0.51 版本中加入 login_fail_exit = false 可以解决,但0.52.2 版本中同样的策略无效。在full_configuration_file 中并没有这个选项。也没有找到任何说明。
PS: 能否直接把尝试重连设定成默认?在什么情况下不需要这个设定?
frpc Version
0.52.2
frps Version
0.52.2
System Architecture
linux/amd64
Configurations
common
login_fail_exit = false
也试过不要这个common
login_fail_exit = false
Logs
2023/10/24 01:18:52 [I] [root.go:220] start frpc service for config file [./frpc.ini]
2023/10/24 01:18:52 [W] [service.go:133] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused
2023/10/24 01:18:52 [I] [root.go:236] frpc service for config file [./frpc.ini] stopped
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Oct 24, 2023):
试试用新 toml 配置文件试一下,要重新写配置,参数名称大都不一样了( loginFailExit = false )。
https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml
还要注意值的格式,字符串用引号,数组用方括号,布尔和整数不需要符号。
ps:我感觉不建议改默认值,连不上退出应该是正确的策略,这样更安全。
@penndu commented on GitHub (Oct 24, 2023):
https://dusays.com/636/
@wzm2256 commented on GitHub (Oct 24, 2023):
感谢回复 参数名称居然也改了,完全不懂意义在哪。
新参数是 loginFailExit 不再是 login_fail_exit
@superzjg commented on GitHub (Oct 24, 2023):
应该是参数太多,需要结构化处理,才改用更先进的配置文件格式。
官方已经更新中文版文档:
https://gofrp.org/zh-cn/docs/
你可以看看 “参考” 这一部分,全部参数已经做了分类和分层(参数中的点号 . )说明;
“示例” 部分已经告诉我们如何写配置。