[PR #4422] [CLOSED] Feature: Add remove api for offline proxy #4977

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

📋 Pull Request Information

Original PR: https://github.com/fatedier/frp/pull/4422
Author: @peter-wangxu
Created: 9/6/2024
Status: Closed

Base: devHead: feat/add_proxy_remove


📝 Commits (1)

  • a7f4ba9 Feature: Add remove api for offline proxy

📊 Changes

4 files changed (+51 additions, -0 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 pkg/metrics/mem/server.go (+11 -0)
📝 pkg/metrics/mem/types.go (+1 -0)
📝 server/dashboard_api.go (+38 -0)

📄 Description

This PR adds api to remove a single proxy with name and type example:
curl -X DELETE -u admin:admin -v http://127.0.0.1:7500/api/proxy/tcp/test-tcp
output:
proxy "test-tcp" deleted

WHY

Currently, only clear all offline proxy api is provided, this PR provides api for singe proxy removal


🔄 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/4422 **Author:** [@peter-wangxu](https://github.com/peter-wangxu) **Created:** 9/6/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/add_proxy_remove` --- ### 📝 Commits (1) - [`a7f4ba9`](https://github.com/fatedier/frp/commit/a7f4ba9b5de1b22647566fcac70455f7f977b39f) Feature: Add remove api for offline proxy ### 📊 Changes **4 files changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `pkg/metrics/mem/server.go` (+11 -0) 📝 `pkg/metrics/mem/types.go` (+1 -0) 📝 `server/dashboard_api.go` (+38 -0) </details> ### 📄 Description This PR adds api to remove a single proxy with name and type example: curl -X DELETE -u admin:admin -v http://127.0.0.1:7500/api/proxy/tcp/test-tcp output: proxy "test-tcp" deleted ### WHY Currently, only clear all offline proxy api is provided, this PR provides api for singe proxy removal --- <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:52:21 -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#4977
No description provided.