[GH-ISSUE #1430] How to exit when there is no internet connection #1123

Closed
opened 2026-05-05 12:43:19 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @luo3300612 on GitHub (Sep 6, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1430

Firstly, thank you for your repo,
I found that frp will continue to reconnect when internet connection failed
However, I don't want it to reconnect, instead, I want the process will end in this situation
And I could't find this option in --help
how to achieve this?

Originally created by @luo3300612 on GitHub (Sep 6, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1430 Firstly, thank you for your repo, I found that frp will continue to reconnect when internet connection failed However, I don't want it to reconnect, instead, I want the process will end in this situation And I could't find this option in `--help` how to achieve this?
Author
Owner

@fatedier commented on GitHub (Sep 6, 2019):

https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini#L46

login_fail_exit = true can only decide if exit program when first login failed.

After login succeed, it will always reconnect to server when failed. You can stop it manually.

<!-- gh-comment-id:528785072 --> @fatedier commented on GitHub (Sep 6, 2019): https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini#L46 `login_fail_exit = true` can only decide if exit program when first login failed. After login succeed, it will always reconnect to server when failed. You can stop it manually.
Author
Owner

@luo3300612 commented on GitHub (Sep 6, 2019):

thanks

<!-- gh-comment-id:528803736 --> @luo3300612 commented on GitHub (Sep 6, 2019): thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1123
No description provided.