[GH-ISSUE #3579] [Feature Request] 当启用user参数时xtcp协议fallback_to参数自动拼接user参数 #2854

Closed
opened 2026-05-05 13:50:54 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @xingdaos on GitHub (Aug 18, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3579

Describe the feature request

现在

配置一:

[common]
server_addr = 172.21.0.2
server_port = 7000
log_level = trace
user = visitor

[stcp_visitor]
role = visitor
type = stcp
server_user = frpc
server_name = stcp
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 9000

[xtcp_visitor]
role = visitor
type = xtcp
server_user = frpc
server_name = xtcp
sk = abcdefgd
# bind_addr = 172.21.0.4
bind_addr = 127.0.0.1
bind_port = 9001
fallback_to = stcp_visitor
fallback_timeout_ms = 5000

日志报错找不到 stcp_visitor:
26F9A07C-0287-4a77-917B-1BB3EB3C34CD

配置二:

[common]
server_addr = 172.21.0.2
server_port = 7000
log_level = trace
user = visitor

[stcp_visitor]
role = visitor
type = stcp
server_user = frpc
server_name = stcp
sk = abcdefg
bind_addr = 127.0.0.1
bind_port = 9000

[xtcp_visitor]
role = visitor
type = xtcp
server_user = frpc
server_name = xtcp
sk = abcdefgd
# bind_addr = 172.21.0.4
bind_addr = 127.0.0.1
bind_port = 9001
fallback_to = visitor.stcp_visitor
fallback_timeout_ms = 5000

可以正常切换:
A39A3C17-6500-4952-90FA-B3F77C5B4F2F

期望

当启用 user 参数后,xtcp 协议的 fallback_to 参数可以自动拼接 user 参数,与节点名称保持逻辑一致

Describe alternatives you've considered

当启用 user 参数后,xtcp 协议的 fallback_to 参数可以自动拼接 user 参数,与节点名称保持逻辑一致

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @xingdaos on GitHub (Aug 18, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3579 ### Describe the feature request ## 现在 ### 配置一: ``` [common] server_addr = 172.21.0.2 server_port = 7000 log_level = trace user = visitor [stcp_visitor] role = visitor type = stcp server_user = frpc server_name = stcp sk = abcdefg bind_addr = 127.0.0.1 bind_port = 9000 [xtcp_visitor] role = visitor type = xtcp server_user = frpc server_name = xtcp sk = abcdefgd # bind_addr = 172.21.0.4 bind_addr = 127.0.0.1 bind_port = 9001 fallback_to = stcp_visitor fallback_timeout_ms = 5000 ``` 日志报错找不到 stcp_visitor: <img width="464" alt="26F9A07C-0287-4a77-917B-1BB3EB3C34CD" src="https://github.com/fatedier/frp/assets/33388842/86eb5d8a-2319-4f2f-8b63-3cbefe5b93e9"> ### 配置二: ``` [common] server_addr = 172.21.0.2 server_port = 7000 log_level = trace user = visitor [stcp_visitor] role = visitor type = stcp server_user = frpc server_name = stcp sk = abcdefg bind_addr = 127.0.0.1 bind_port = 9000 [xtcp_visitor] role = visitor type = xtcp server_user = frpc server_name = xtcp sk = abcdefgd # bind_addr = 172.21.0.4 bind_addr = 127.0.0.1 bind_port = 9001 fallback_to = visitor.stcp_visitor fallback_timeout_ms = 5000 ``` 可以正常切换: <img width="460" alt="A39A3C17-6500-4952-90FA-B3F77C5B4F2F" src="https://github.com/fatedier/frp/assets/33388842/b5e75958-4347-4d6b-8bb1-4fc152b93d70"> ## 期望 当启用 user 参数后,xtcp 协议的 fallback_to 参数可以自动拼接 user 参数,与节点名称保持逻辑一致 ### Describe alternatives you've considered 当启用 user 参数后,xtcp 协议的 fallback_to 参数可以自动拼接 user 参数,与节点名称保持逻辑一致 ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
gitea-mirror 2026-05-05 13:50:54 -06:00
  • closed this issue
  • added the
    todo
    label
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#2854
No description provided.