mirror of
https://github.com/fatedier/frp.git
synced 2026-03-19 00:09:14 +08:00
pkg/msg: change UDPPacket.Content from string to []byte to avoid redundant base64 encode/decode (#5198)
This commit is contained in:
@@ -184,7 +184,7 @@ type Pong struct {
|
||||
}
|
||||
|
||||
type UDPPacket struct {
|
||||
Content string `json:"c,omitempty"`
|
||||
Content []byte `json:"c,omitempty"`
|
||||
LocalAddr *net.UDPAddr `json:"l,omitempty"`
|
||||
RemoteAddr *net.UDPAddr `json:"r,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user