mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #5199] [CLOSED] pkg/msg: switch UDPPacket.Content to []byte in UDP path #5166
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#5166
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/5199
Author: @Copilot
Created: 3/5/2026
Status: ❌ Closed
Base:
new← Head:copilot/review-pull-request-5198📝 Commits (1)
7993225Initial plan📄 Description
WHY
UDP forwarding was doing a redundant conversion cycle (
[]byte -> base64 string -> JSON -> base64 decode -> []byte) on a hot path.This update keeps payloads as bytes in memory while preserving the existing JSON wire format compatibility.
Data model change
msg.UDPPacket.Contentis now[]byte(wasstring).Protocol path simplification
base64.StdEncoding.EncodeToString/DecodeStringfrompkg/proto/udp.NewUDPPacketnow copies input bytes into packet content directly.Behavioral compatibility
[]byteas base64 automatically.Logging hygiene
len(Content)in UDP client/server paths to avoid logging binary data.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.