[PR #2483] [CLOSED] Honor login_fail_exit when reconnecting #4587

Closed
opened 2026-05-05 14:44:54 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/2483
Author: @jordemort
Created: 7/15/2021
Status: Closed

Base: devHead: login-fail-exit-reconnect


📝 Commits (2)

  • 88f4bcf Honor login_fail_exit when reconnecting
  • 574322c Call os.Exit on reconnect login fail

📊 Changes

1 file changed (+5 additions, -0 deletions)

View changed files

📝 client/service.go (+5 -0)

📄 Description

login_fail_exit is honored when initially connecting, but currently has no effect when reconnecting.

This adds a check after attempting to reconnect, so that a failure there is treated the same as a failure during the initial connection, if login_fail_exit is set to true.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fatedier/frp/pull/2483 **Author:** [@jordemort](https://github.com/jordemort) **Created:** 7/15/2021 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `login-fail-exit-reconnect` --- ### 📝 Commits (2) - [`88f4bcf`](https://github.com/fatedier/frp/commit/88f4bcfca8e1d749a2e1b9cdc0556c54fc442265) Honor `login_fail_exit` when reconnecting - [`574322c`](https://github.com/fatedier/frp/commit/574322c96d3534faf658ca48414ac8d5f3c302dc) Call os.Exit on reconnect login fail ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/service.go` (+5 -0) </details> ### 📄 Description `login_fail_exit` is honored when initially connecting, but currently has no effect when reconnecting. This adds a check after attempting to reconnect, so that a failure there is treated the same as a failure during the initial connection, if `login_fail_exit` is set to true. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 14:44:54 -06:00
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#4587
No description provided.