mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #3896] [CLOSED] fix: ClientConfig marshals incorrectly #4861
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#4861
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/3896
Author: @free6om
Created: 12/26/2023
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
4712e3afix: ClientConfig marshals incorrectly📊 Changes
2 files changed (+60 additions, -0 deletions)
View changed files
📝
pkg/config/v1/proxy.go(+4 -0)📝
pkg/config/v1/proxy_test.go(+56 -0)📄 Description
WHY
the output of
yaml.Marshal(&ClientConfig{})is incorrect, this PR fixed this error.How to reproduce it
ClientConfigobjectclientConfigwithProxiesfield setyaml.Marshal(&clientConfig)and set the output toyamlConfigconfig.LoadConfigure(yamlConfig, &clientConfig, false)to unmarshal the outputclientConfig, theProxiespart is lost🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.