frp/pkg
fatedier f2d1f3739a
pkg/util/xlog: fix AddPrefix not updating existing prefix due to range value copy (#5206)
In AddPrefix, the loop `for _, p := range l.prefixes` creates a copy
of each element. Assignments to p.Value and p.Priority only modify
the local copy, not the original slice element, causing updates to
existing prefixes to be silently lost.

This affects client/service.go where AddPrefix is called with
Name:"runID" on reconnection — the old runID value would persist
in log output instead of being updated to the new one.

Fix by using index-based access `l.prefixes[i]` to modify the
original slice element, and add break since prefix names are unique.
2026-03-06 20:44:40 +08:00
..
auth fix: WebsocketListener nil panic and OIDC auth data race (#5204) 2026-03-06 16:51:52 +08:00
config pkg/config: fix line numbers shown incorrectly for TOML type mismatch errors (#5195) 2026-03-04 20:53:22 +08:00
errors rename models to pkg (#2005) 2020-09-23 13:49:14 +08:00
metrics web/frps: add detailed client and proxy views with enhanced tracking (#5144) 2026-01-31 02:18:35 +08:00
msg pkg/msg: change UDPPacket.Content from string to []byte to avoid redundant base64 encode/decode (#5198) 2026-03-06 01:38:24 +08:00
naming add persistent proxy/visitor store with CRUD API and web UI (#5188) 2026-03-02 01:09:59 +08:00
nathole fix: return buffers to pool on error paths to reduce GC pressure (#5203) 2026-03-06 15:55:22 +08:00
plugin fix: validate CA cert parsing and add missing ReadHeaderTimeout (#5205) 2026-03-06 17:59:41 +08:00
policy add persistent proxy/visitor store with CRUD API and web UI (#5188) 2026-03-02 01:09:59 +08:00
proto/udp fix: return buffers to pool on error paths to reduce GC pressure (#5203) 2026-03-06 15:55:22 +08:00
sdk/client refactor: restructure API packages into client/http and server/http with typed proxy/visitor models (#5193) 2026-03-04 17:38:43 +08:00
ssh add persistent proxy/visitor store with CRUD API and web UI (#5188) 2026-03-02 01:09:59 +08:00
transport fix: validate CA cert parsing and add missing ReadHeaderTimeout (#5205) 2026-03-06 17:59:41 +08:00
util pkg/util/xlog: fix AddPrefix not updating existing prefix due to range value copy (#5206) 2026-03-06 20:44:40 +08:00
virtual add persistent proxy/visitor store with CRUD API and web UI (#5188) 2026-03-02 01:09:59 +08:00
vnet vnet: fix issues (#4771) 2025-04-27 15:46:22 +08:00