[GH-ISSUE #2907] 支持按域名暴露WebSockets接口 #2316

Closed
opened 2026-05-05 13:29:36 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @mbj2014 on GitHub (Apr 22, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2907

Describe the feature request

当前只能通过暴露一个http和一个tcp来共同配合实现暴露内网的WebSockets。

但当我的内网有多台相似主机,要暴露一样的ws时,希望能想http一样通过域名来区分,而使用一样的外部端口。

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @mbj2014 on GitHub (Apr 22, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2907 ### Describe the feature request 当前只能通过暴露一个http和一个tcp来共同配合实现暴露内网的WebSockets。 但当我的内网有多台相似主机,要暴露一样的ws时,希望能想http一样通过域名来区分,而使用一样的外部端口。 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [X] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:29:36 -06:00
Author
Owner

@novvoo commented on GitHub (Apr 29, 2022):

https://raw.githubusercontent.com/the-cc-dev/inlets/master/main.go

<!-- gh-comment-id:1112963770 --> @novvoo commented on GitHub (Apr 29, 2022): https://raw.githubusercontent.com/the-cc-dev/inlets/master/main.go
Author
Owner

@novvoo commented on GitHub (Apr 29, 2022):

# inlets client --upstream=https://10.238.241.11:8443 --remote wss://test.connex.com --token=5a1374d7a7037813d71e0f52d378cca5ba1b131c
2022/04/29 15:42:54 Upstream:  => https://10.238.241.11:8443
2022/04/29 15:42:54 Token: "5a1374d7a7037813d71e0f52d378cca5ba1b131c"
Welcome to inlets.dev! Find out more at https://github.com/alexellis/inlets

map[Authorization:[Bearer 5a1374d7a7037813d71e0f52d378cca5ba1b131c] X-Inlets-Id:[236874f9ffed409fa6b0f60e4fc0d014] X-Inlets-Upstream:[=https://10.238.241.11:8443]]
INFO[0000] Connecting to proxy                           url="wss://test.connex.com/tunnel"

<!-- gh-comment-id:1112969578 --> @novvoo commented on GitHub (Apr 29, 2022): ``` # inlets client --upstream=https://10.238.241.11:8443 --remote wss://test.connex.com --token=5a1374d7a7037813d71e0f52d378cca5ba1b131c 2022/04/29 15:42:54 Upstream: => https://10.238.241.11:8443 2022/04/29 15:42:54 Token: "5a1374d7a7037813d71e0f52d378cca5ba1b131c" Welcome to inlets.dev! Find out more at https://github.com/alexellis/inlets map[Authorization:[Bearer 5a1374d7a7037813d71e0f52d378cca5ba1b131c] X-Inlets-Id:[236874f9ffed409fa6b0f60e4fc0d014] X-Inlets-Upstream:[=https://10.238.241.11:8443]] INFO[0000] Connecting to proxy url="wss://test.connex.com/tunnel" ```
Author
Owner

@mbj2014 commented on GitHub (May 16, 2022):

另外一个软件的实现?

<!-- gh-comment-id:1127103965 --> @mbj2014 commented on GitHub (May 16, 2022): 另外一个软件的实现?
Author
Owner

@github-actions[bot] commented on GitHub (Jun 16, 2022):

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

<!-- gh-comment-id:1157102723 --> @github-actions[bot] commented on GitHub (Jun 16, 2022): 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#2316
No description provided.