mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #3809] [MERGED] Improve the strict configuration validation #4836
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#4836
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/3809
Author: @fatedier
Created: 11/28/2023
Status: ✅ Merged
Merged: 11/28/2023
Merged by: @fatedier
Base:
dev← Head:new📝 Commits (1)
bc50fddImprove the strict configuration validation📊 Changes
7 files changed (+102 additions, -6 deletions)
View changed files
📝
Release.md(+1 -1)📝
pkg/config/load.go(+4 -1)📝
pkg/config/load_test.go(+53 -0)📝
pkg/config/v1/common.go(+14 -0)📝
pkg/config/v1/plugin.go(+15 -1)📝
pkg/config/v1/proxy.go(+6 -1)📝
pkg/config/v1/visitor.go(+9 -2)📄 Description
Summary
🤖[deprecated] Generated by Copilot at
bc50fddAdded a new command line parameter
--strict_configthat enables strict configuration validation mode for frp. This mode rejects any configuration files that contain unknown fields or invalid plugin options. The parameter affects thejsondecoder used in thepkg/configpackage and theTypefield added to the plugin options types. TheRelease.mdfile was updated to document this feature.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.