mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2605] 第一次链接服务器若网络不可用,则frpc会直接退出。 #2077
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#2077
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 @siaimes on GitHub (Oct 6, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2605
Bug Description
我在Windows上为frpc设置了开机自启,但是经常会发现它没有自启。
经过我的反复研究,我应该是定位到了问题。
应该是frpc启动时,网络尚未链接稳定,导致frpc尝试链接服务器失败,此时frpc会直接退出而不是等待数秒重连。
如下图所示,我将网络断开之后手动运行frpc.exe也可以得到这个效果:

frpc Version
0.37.1
frps Version
0.37.1
System Architecture
windows/amd64
Configurations
[common]
server_addr = xxxx
server_port = 7000
privilege_token = xxxxxxxxxxxxx
tls_enable = true
[xxx]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 7001
Logs
No response
Steps to reproduce
...
Affected area
@raisin8010 commented on GitHub (Oct 7, 2021):
同意,这对设成服务自启动的非常不方便
@siaimes commented on GitHub (Oct 7, 2021):
@yaott2020-666 Solved, thank you.
@fatedier 不知是文档里面没写还是我没找到,我找遍了文档都没有找到这个配置项,如果方便的话,可以找个地方贴一下,谢谢。
@zhizunbao84 commented on GitHub (Jan 9, 2022):
怎么解决的啊?
@siaimes commented on GitHub (Jan 9, 2022):
@ZhangErling commented on GitHub (Oct 18, 2022):
建议将此链接或者
login_fail_exit = false贴在自启动文档中,并说明改配置为frp配置,而非service文件配置,他帮助了我(CentOS 8 Steam),相信他也可以帮助更多人,感谢作者的奉献