[GH-ISSUE #2404] frps 端口分配策略 #1909

Closed
opened 2026-05-05 13:13:56 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @iakihsoug on GitHub (May 19, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2404

remote_port 为 0 时,frps 优先分配 client 之前使用的端口
否则按 LRU 分配端口

Originally created by @iakihsoug on GitHub (May 19, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2404 当 `remote_port` 为 0 时,`frps` 优先分配 `client` 之前使用的端口 否则按 `LRU` 分配端口
gitea-mirror 2026-05-05 13:13:56 -06:00
Author
Owner

@fatedier commented on GitHub (May 19, 2021):

目前已经是这个策略,会尽量保留 proxy 最近24小时使用过的端口,如果端口没有被其他服务占用的话。

<!-- gh-comment-id:843866778 --> @fatedier commented on GitHub (May 19, 2021): 目前已经是这个策略,会尽量保留 proxy 最近24小时使用过的端口,如果端口没有被其他服务占用的话。
Author
Owner

@github-actions[bot] commented on GitHub (Jul 4, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:873491095 --> @github-actions[bot] commented on GitHub (Jul 4, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1909
No description provided.