mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #4422] [CLOSED] Feature: Add remove api for offline proxy #4977
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4977
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/4422
Author: @peter-wangxu
Created: 9/6/2024
Status: ❌ Closed
Base:
dev← Head:feat/add_proxy_remove📝 Commits (1)
a7f4ba9Feature: 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.