[GH-ISSUE #4786] 这种情况下,如何让失败退出程序? #3779

Closed
opened 2026-05-05 14:25:17 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @wuai1024 on GitHub (May 6, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4786

Describe the feature request

域名绑定的ip发生变更后,frpc就会这样无限重连,不会重新解析域名连接,必须得重启后才会去解析域名的最新ip连接。

Image

Describe alternatives you've considered

希望这时候能直接退出

Originally created by @wuai1024 on GitHub (May 6, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4786 ### Describe the feature request 域名绑定的ip发生变更后,`frpc`就会这样无限重连,不会重新解析域名连接,必须得重启后才会去解析域名的最新ip连接。 ![Image](https://github.com/user-attachments/assets/fdd17346-c309-4d5c-8c4a-e7ff7dcbf7fd) ### Describe alternatives you've considered 希望这时候能直接退出
gitea-mirror 2026-05-05 14:25:17 -06:00
Author
Owner

@wuai1024 commented on GitHub (May 15, 2025):

???

<!-- gh-comment-id:2883085237 --> @wuai1024 commented on GitHub (May 15, 2025): ???
Author
Owner

@wuai1024 commented on GitHub (May 15, 2025):

有解决办法吗? 现在是加了个智能插座,当 ddns 域名更新后,发现 连接不上了,就用插座 重启整个设备,让frpc重新连接。这样很麻烦。也不智能。

<!-- gh-comment-id:2883092266 --> @wuai1024 commented on GitHub (May 15, 2025): 有解决办法吗? 现在是加了个智能插座,当 ddns 域名更新后,发现 连接不上了,就用插座 重启整个设备,让frpc重新连接。这样很麻烦。也不智能。
Author
Owner

@litrycn commented on GitHub (May 21, 2025):

conf/frpc_full_example.toml

# Decide if exit program when first login failed, otherwise continuous relogin to frps
# default is true
loginFailExit = true
<!-- gh-comment-id:2896412512 --> @litrycn commented on GitHub (May 21, 2025): # conf/frpc_full_example.toml ``` # Decide if exit program when first login failed, otherwise continuous relogin to frps # default is true loginFailExit = true ```
Author
Owner

@github-actions[bot] commented on GitHub (Jun 5, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:2942237373 --> @github-actions[bot] commented on GitHub (Jun 5, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
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#3779
No description provided.