[GH-ISSUE #3673] [Feature Request] 服务端插件 RPC 支持通过 UDS 连接 #2925

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

Originally created by @xqzr on GitHub (Oct 13, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3673

Describe the feature request

通过 unix 域套接字(UNIX-domain socket)连接。形如🔽

# frps.toml
bindPort = 7000

[[httpPlugins]]
name = "user-manager"
addr = "unix:/dev/shm/frpLG.socket"
path = "/handler"
ops = ["Login"]

[[httpPlugins]]
name = "port-manager"
addr = "https://unix:/dev/shm/frpNP.socket"
path = "/handler"
ops = ["NewProxy"]

UDS 相比 TCP 它没有 IP(IPv4)、TCP 层校验 、0-RTT。

参考:
https://github.com/fatedier/frp/blob/dev/doc/server_plugin.md#server-plugin-configuration
https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass

Describe alternatives you've considered

通过 IPv6 连接。形如🔽

[[httpPlugins]]
name = "user-manager"
addr = "[::1]:9000"
path = "/handler"
ops = ["Login"]

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @xqzr on GitHub (Oct 13, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3673 ### Describe the feature request 通过 unix 域套接字(UNIX-domain socket)连接。形如🔽 ```toml # frps.toml bindPort = 7000 [[httpPlugins]] name = "user-manager" addr = "unix:/dev/shm/frpLG.socket" path = "/handler" ops = ["Login"] [[httpPlugins]] name = "port-manager" addr = "https://unix:/dev/shm/frpNP.socket" path = "/handler" ops = ["NewProxy"] ``` UDS 相比 TCP 它没有 IP(IPv4)、TCP 层校验 、0-RTT。 参考: https://github.com/fatedier/frp/blob/dev/doc/server_plugin.md#server-plugin-configuration https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass ### Describe alternatives you've considered 通过 IPv6 连接。形如🔽 ```toml [[httpPlugins]] name = "user-manager" addr = "[::1]:9000" path = "/handler" ops = ["Login"] ``` ### Affected area - [ ] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:53:26 -06:00
Author
Owner

@fatedier commented on GitHub (Oct 16, 2023):

插件功能更多的扩展方式和能力,在较长期的规划里,暂时不会有太多改动。

<!-- gh-comment-id:1763631375 --> @fatedier commented on GitHub (Oct 16, 2023): 插件功能更多的扩展方式和能力,在较长期的规划里,暂时不会有太多改动。
Author
Owner

@github-actions[bot] commented on GitHub (Nov 16, 2023):

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

<!-- gh-comment-id:1813517292 --> @github-actions[bot] commented on GitHub (Nov 16, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d 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#2925
No description provided.