[PR #3728] [CLOSED] feature: reload config file on save #4818

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/3728
Author: @NanamiNakano
Created: 10/27/2023
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • 0bd61cb reload config file on save

📊 Changes

5 files changed (+63 additions, -0 deletions)

View changed files

📝 client/service.go (+55 -0)
📝 conf/frpc_full_example.toml (+3 -0)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 pkg/config/v1/client.go (+2 -0)

📄 Description

Summary

🤖 Generated by Copilot at 0bd61cb

This pull request adds a feature to enable the client to automatically reload its configuration file when it changes. It introduces a new option reloadOnUpdate in the client configuration file and a new dependency fsnotify for file system notifications. It modifies the Service struct, the ClientCommonConfig struct, and the example configuration file.

WHY

Implement issue https://github.com/fatedier/frp/issues/1176


🔄 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/3728 **Author:** [@NanamiNakano](https://github.com/NanamiNakano) **Created:** 10/27/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`0bd61cb`](https://github.com/fatedier/frp/commit/0bd61cbaf616ff0f532a377ab9719ab46d30a84a) reload config file on save ### 📊 Changes **5 files changed** (+63 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/service.go` (+55 -0) 📝 `conf/frpc_full_example.toml` (+3 -0) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `pkg/config/v1/client.go` (+2 -0) </details> ### 📄 Description ### Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 0bd61cb</samp> This pull request adds a feature to enable the client to automatically reload its configuration file when it changes. It introduces a new option `reloadOnUpdate` in the client configuration file and a new dependency `fsnotify` for file system notifications. It modifies the `Service` struct, the `ClientCommonConfig` struct, and the example configuration file. ### WHY Implement issue https://github.com/fatedier/frp/issues/1176 --- <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:49:17 -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#4818
No description provided.