mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3349] 以服务形式开机自启动报错 #2678
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#2678
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 @aiming0420 on GitHub (Mar 9, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3349
Bug Description
1,想让客户端开机自启动,使用winsw注册成服务开机自启动。
2,服务程序启动报错:dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.
3,使用延迟启动可以正常连接,说明启动时电脑还没有链接Internet的时候程序会退出而不是保持运行状态并继续尝试连接。
4,希望可以调整程序运行机制,启动的时候如果检测到网络错误不要退出,继续尝试连接服务端。
frpc Version
0.47.0
frps Version
0.47.0
System Architecture
windows11 专业版 64位
Configurations
#frpc
[common]
server_addr = xxx
server_port = 30000
#frps
[common]
bind_port = 30000
Logs
2023/03/09 10:49:29 [W] [service.go:134] login to server failed: dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.
dial tcp xxx:30000: connectex: A socket operation was attempted to an unreachable network.
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Mar 9, 2023):
确认frpc已经注册服务启动程序后,剩下的就是仔细阅读配置文件指南。你的情况要设置:login_fail_exit = false
@aiming0420 commented on GitHub (Mar 10, 2023):
配置项太多,没仔细看。非常感谢回复!