mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[PR #3610] [MERGED] config: add some validations #4791
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#4791
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/3610
Author: @fatedier
Created: 9/13/2023
Status: ✅ Merged
Merged: 9/13/2023
Merged by: @fatedier
Base:
dev← Head:new📝 Commits (1)
97c60afconfig: add some validations📊 Changes
9 files changed (+144 additions, -20 deletions)
View changed files
📝
cmd/frpc/sub/root.go(+1 -1)📝
pkg/config/v1/server.go(+6 -6)📝
pkg/config/v1/validation/client.go(+17 -2)📝
pkg/config/v1/validation/common.go(+13 -3)📝
pkg/config/v1/validation/proxy.go(+1 -1)📝
pkg/config/v1/validation/server.go(+27 -6)📝
pkg/config/v1/validation/validation.go(+40 -0)📝
pkg/config/v1/visitor.go(+1 -1)📝
test/e2e/v1/basic/config.go(+38 -0)📄 Description
Summary
🤖 Generated by Copilot at aa3d694
This pull request fixes a bug in the
runClientfunction, refactors the configuration validation logic, adds support and validation for OIDC authentication and theAuthfeature, and adds a new test case for the configuration file formats. It also cleans up some code, improves error messages, and adds some constants and dependencies. The changes affect the filescmd/frpc/sub/root.go,pkg/config/v1/*, andtest/e2e/v1/basic/config.go.WHY
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.